Debian Codegraph @

docs/dyn/monitoring_v1.projects.dashboards.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="monitoring_v1.html">Cloud Monitoring API</a> . <a href="monitoring_v1.projects.html">projects</a> . <a href="monitoring_v1.projects.dashboards.html">dashboards</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, validateOnly=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see Managing dashboards by API (https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the monitoring.dashboards.create permission on the specified project. For more information about permissions, see Cloud Identity and Access Management (https://cloud.google.com/iam).</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes an existing custom dashboard.This method requires the monitoring.dashboards.delete permission on the specified dashboard. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Fetches a specific dashboard.This method requires the monitoring.dashboards.get permission on the specified dashboard. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists the existing dashboards.This method requires the monitoring.dashboards.list permission on the specified project. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, validateOnly=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Replaces an existing custom dashboard with a new definition.This method requires the monitoring.dashboards.update permission on the specified dashboard. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, validateOnly=None, x__xgafv=None)</code>
106 <pre>Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see Managing dashboards by API (https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the monitoring.dashboards.create permission on the specified project. For more information about permissions, see Cloud Identity and Access Management (https://cloud.google.com/iam).
107
108 Args:
109 parent: string, Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
114 &quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
115 &quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
116 &quot;A String&quot;,
117 ],
118 &quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
119 { # Annotation configuration for one event type on a dashboard
120 &quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
121 &quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
122 &quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
123 &quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
124 &quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
125 &quot;A String&quot;,
126 ],
127 },
128 ],
129 },
130 &quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
131 &quot;columns&quot;: [ # The columns of content to display.
132 { # Defines the layout properties and content for a column.
133 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this column. The column weight is used to adjust the width of columns on the screen (relative to peers). Greater the weight, greater the width of the column on the screen. If omitted, a value of 1 is used while rendering.
134 &quot;widgets&quot;: [ # The display widgets arranged vertically in this column.
135 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
136 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
137 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
138 },
139 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
140 },
141 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
142 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
143 },
144 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
145 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
146 &quot;A String&quot;,
147 ],
148 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
149 &quot;A String&quot;,
150 ],
151 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
152 &quot;A String&quot;,
153 ],
154 },
155 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
156 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
157 },
158 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
159 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
160 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
161 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
162 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
163 &quot;a_key&quot;: &quot;A String&quot;,
164 },
165 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
166 },
167 ],
168 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
169 &quot;A String&quot;,
170 ],
171 },
172 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
173 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
174 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
175 &quot;A String&quot;,
176 ],
177 },
178 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
179 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
180 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
181 { # Groups a time series query definition.
182 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
183 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
184 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
185 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
186 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
187 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
188 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
189 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
190 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
191 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
192 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
193 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
194 },
195 ],
196 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
197 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
198 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
199 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
200 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
201 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
202 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
203 },
204 ],
205 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
206 },
207 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
208 },
209 ],
210 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
211 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
212 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
213 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
214 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
215 },
216 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
217 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
218 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
219 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
220 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
221 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
222 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
223 &quot;A String&quot;,
224 ],
225 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
226 },
227 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
228 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
229 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
230 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
231 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
232 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
233 },
234 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
235 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
236 },
237 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
238 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
239 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
240 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
241 &quot;A String&quot;,
242 ],
243 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
244 },
245 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
246 &quot;numTimeSeries&quot;: 42, # How many time series to output.
247 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
248 },
249 },
250 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
251 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
252 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
253 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
254 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
255 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
256 &quot;A String&quot;,
257 ],
258 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
259 },
260 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
261 },
262 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
263 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
264 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
265 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
266 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
267 &quot;A String&quot;,
268 ],
269 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
270 },
271 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
272 },
273 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
274 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
275 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
276 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
277 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
278 },
279 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
280 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
281 },
282 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
283 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
284 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
285 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
286 &quot;A String&quot;,
287 ],
288 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
289 },
290 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
291 &quot;numTimeSeries&quot;: 42, # How many time series to output.
292 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
293 },
294 },
295 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
296 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
297 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
298 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
299 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
300 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
301 &quot;A String&quot;,
302 ],
303 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
304 &quot;A String&quot;,
305 ],
306 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
307 &quot;A String&quot;,
308 ],
309 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
310 { # Span attribute key and list of values to be used for filtering.
311 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
312 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
313 &quot;A String&quot;,
314 ],
315 },
316 ],
317 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
318 &quot;A String&quot;,
319 ],
320 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
321 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
322 &quot;A String&quot;,
323 ],
324 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
325 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
326 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
327 &quot;A String&quot;,
328 ],
329 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
330 &quot;A String&quot;,
331 ],
332 },
333 },
334 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
335 },
336 },
337 ],
338 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
339 },
340 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
341 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
342 },
343 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
344 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
345 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
346 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
347 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
348 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
349 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
350 },
351 ],
352 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
353 },
354 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
355 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
356 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
357 },
358 ],
359 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
360 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
361 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
362 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
363 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
364 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
365 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
366 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
367 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
368 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
369 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
370 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
371 },
372 ],
373 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
374 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
375 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
376 },
377 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
378 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
379 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
380 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
381 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
382 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
383 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
384 },
385 ],
386 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
387 },
388 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
389 },
390 ],
391 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
392 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
393 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
394 },
395 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
396 { # Defines a threshold for categorizing time series values.
397 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
398 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
399 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
400 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
401 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
402 },
403 ],
404 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
405 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
406 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
407 },
408 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
409 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
410 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
411 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
412 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
413 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
414 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
415 &quot;A String&quot;,
416 ],
417 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
418 },
419 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
420 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
421 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
422 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
423 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
424 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
425 },
426 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
427 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
428 },
429 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
430 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
431 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
432 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
433 &quot;A String&quot;,
434 ],
435 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
436 },
437 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
438 &quot;numTimeSeries&quot;: 42, # How many time series to output.
439 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
440 },
441 },
442 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
443 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
444 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
445 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
446 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
447 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
448 &quot;A String&quot;,
449 ],
450 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
451 },
452 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
453 },
454 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
455 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
456 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
457 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
458 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
459 &quot;A String&quot;,
460 ],
461 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
462 },
463 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
464 },
465 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
466 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
467 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
468 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
469 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
470 },
471 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
472 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
473 },
474 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
475 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
476 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
477 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
478 &quot;A String&quot;,
479 ],
480 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
481 },
482 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
483 &quot;numTimeSeries&quot;: 42, # How many time series to output.
484 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
485 },
486 },
487 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
488 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
489 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
490 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
491 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
492 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
493 &quot;A String&quot;,
494 ],
495 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
496 &quot;A String&quot;,
497 ],
498 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
499 &quot;A String&quot;,
500 ],
501 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
502 { # Span attribute key and list of values to be used for filtering.
503 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
504 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
505 &quot;A String&quot;,
506 ],
507 },
508 ],
509 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
510 &quot;A String&quot;,
511 ],
512 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
513 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
514 &quot;A String&quot;,
515 ],
516 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
517 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
518 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
519 &quot;A String&quot;,
520 ],
521 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
522 &quot;A String&quot;,
523 ],
524 },
525 },
526 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
527 },
528 },
529 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
530 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
531 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
532 },
533 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
534 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
535 },
536 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
537 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
538 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
539 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
540 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
541 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
542 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
543 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
544 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
545 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
546 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
547 },
548 },
549 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
550 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
551 { # The persistent settings for a table&#x27;s columns.
552 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
553 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
554 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
555 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
556 { # Defines a threshold for categorizing time series values.
557 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
558 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
559 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
560 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
561 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
562 },
563 ],
564 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
565 },
566 ],
567 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
568 { # Groups a time series query definition with table options.
569 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
570 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
571 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
572 &quot;A String&quot;,
573 ],
574 },
575 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
576 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
577 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
578 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
579 },
580 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
581 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
582 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
583 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
584 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
585 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
586 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
587 &quot;A String&quot;,
588 ],
589 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
590 },
591 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
592 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
593 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
594 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
595 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
596 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
597 },
598 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
599 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
600 },
601 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
602 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
603 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
604 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
605 &quot;A String&quot;,
606 ],
607 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
608 },
609 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
610 &quot;numTimeSeries&quot;: 42, # How many time series to output.
611 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
612 },
613 },
614 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
615 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
616 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
617 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
618 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
619 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
620 &quot;A String&quot;,
621 ],
622 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
623 },
624 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
625 },
626 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
627 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
628 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
629 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
630 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
631 &quot;A String&quot;,
632 ],
633 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
634 },
635 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
636 },
637 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
638 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
639 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
640 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
641 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
642 },
643 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
644 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
645 },
646 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
647 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
648 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
649 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
650 &quot;A String&quot;,
651 ],
652 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
653 },
654 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
655 &quot;numTimeSeries&quot;: 42, # How many time series to output.
656 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
657 },
658 },
659 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
660 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
661 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
662 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
663 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
664 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
665 &quot;A String&quot;,
666 ],
667 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
668 &quot;A String&quot;,
669 ],
670 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
671 &quot;A String&quot;,
672 ],
673 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
674 { # Span attribute key and list of values to be used for filtering.
675 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
676 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
677 &quot;A String&quot;,
678 ],
679 },
680 ],
681 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
682 &quot;A String&quot;,
683 ],
684 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
685 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
686 &quot;A String&quot;,
687 ],
688 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
689 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
690 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
691 &quot;A String&quot;,
692 ],
693 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
694 &quot;A String&quot;,
695 ],
696 },
697 },
698 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
699 },
700 },
701 ],
702 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
703 },
704 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
705 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
706 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
707 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
708 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
709 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
710 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
711 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
712 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
713 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
714 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
715 },
716 ],
717 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
718 },
719 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
720 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
721 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
722 },
723 ],
724 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
725 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
726 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
727 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
728 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
729 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
730 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
731 },
732 ],
733 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
734 },
735 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
736 },
737 ],
738 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
739 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
740 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
741 },
742 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
743 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
744 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
745 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
746 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
747 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
748 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
749 &quot;A String&quot;,
750 ],
751 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
752 },
753 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
754 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
755 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
756 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
757 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
758 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
759 },
760 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
761 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
762 },
763 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
764 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
765 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
766 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
767 &quot;A String&quot;,
768 ],
769 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
770 },
771 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
772 &quot;numTimeSeries&quot;: 42, # How many time series to output.
773 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
774 },
775 },
776 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
777 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
778 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
779 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
780 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
781 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
782 &quot;A String&quot;,
783 ],
784 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
785 },
786 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
787 },
788 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
789 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
790 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
791 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
792 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
793 &quot;A String&quot;,
794 ],
795 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
796 },
797 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
798 },
799 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
800 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
801 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
802 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
803 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
804 },
805 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
806 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
807 },
808 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
809 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
810 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
811 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
812 &quot;A String&quot;,
813 ],
814 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
815 },
816 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
817 &quot;numTimeSeries&quot;: 42, # How many time series to output.
818 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
819 },
820 },
821 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
822 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
823 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
824 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
825 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
826 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
827 &quot;A String&quot;,
828 ],
829 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
830 &quot;A String&quot;,
831 ],
832 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
833 &quot;A String&quot;,
834 ],
835 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
836 { # Span attribute key and list of values to be used for filtering.
837 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
838 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
839 &quot;A String&quot;,
840 ],
841 },
842 ],
843 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
844 &quot;A String&quot;,
845 ],
846 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
847 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
848 &quot;A String&quot;,
849 ],
850 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
851 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
852 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
853 &quot;A String&quot;,
854 ],
855 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
856 &quot;A String&quot;,
857 ],
858 },
859 },
860 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
861 },
862 },
863 ],
864 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
865 &quot;A String&quot;,
866 ],
867 },
868 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
869 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
870 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
871 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
872 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
873 },
874 },
875 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
876 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
877 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
878 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
879 },
880 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
881 { # Groups a time series query definition with charting options.
882 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
883 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
884 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
885 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
886 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
887 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
888 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
889 },
890 ],
891 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
892 },
893 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
894 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
895 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
896 },
897 ],
898 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
899 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
900 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
901 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
902 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
903 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
904 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
905 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
906 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
907 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
908 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
909 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
910 },
911 ],
912 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
913 &quot;measures&quot;: [ # Optional. A collection of measures.
914 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
915 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
916 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
917 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
918 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
919 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
920 },
921 ],
922 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
923 },
924 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
925 },
926 ],
927 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
928 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
929 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
930 { # Data structure to storing column&#x27;s sort strategy
931 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
932 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
933 },
934 ],
935 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
936 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
937 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
938 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
939 },
940 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
941 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
942 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
943 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
944 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
945 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
946 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
947 &quot;A String&quot;,
948 ],
949 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
950 },
951 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
952 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
953 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
954 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
955 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
956 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
957 },
958 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
959 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
960 },
961 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
962 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
963 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
964 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
965 &quot;A String&quot;,
966 ],
967 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
968 },
969 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
970 &quot;numTimeSeries&quot;: 42, # How many time series to output.
971 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
972 },
973 },
974 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
975 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
976 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
977 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
978 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
979 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
980 &quot;A String&quot;,
981 ],
982 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
983 },
984 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
985 },
986 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
987 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
988 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
989 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
990 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
991 &quot;A String&quot;,
992 ],
993 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
994 },
995 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
996 },
997 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
998 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
999 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1000 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1001 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1002 },
1003 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1004 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1005 },
1006 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
1007 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1008 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1009 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1010 &quot;A String&quot;,
1011 ],
1012 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1013 },
1014 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1015 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1016 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1017 },
1018 },
1019 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
1020 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
1021 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
1022 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
1023 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
1024 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
1025 &quot;A String&quot;,
1026 ],
1027 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
1028 &quot;A String&quot;,
1029 ],
1030 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
1031 &quot;A String&quot;,
1032 ],
1033 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
1034 { # Span attribute key and list of values to be used for filtering.
1035 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
1036 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
1037 &quot;A String&quot;,
1038 ],
1039 },
1040 ],
1041 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
1042 &quot;A String&quot;,
1043 ],
1044 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
1045 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
1046 &quot;A String&quot;,
1047 ],
1048 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
1049 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
1050 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
1051 &quot;A String&quot;,
1052 ],
1053 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
1054 &quot;A String&quot;,
1055 ],
1056 },
1057 },
1058 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
1059 },
1060 },
1061 ],
1062 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
1063 { # Defines a threshold for categorizing time series values.
1064 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
1065 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
1066 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
1067 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
1068 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
1069 },
1070 ],
1071 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
1072 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
1073 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
1074 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
1075 },
1076 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
1077 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
1078 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
1079 },
1080 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
1081 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
1082 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
1083 },
1084 },
1085 },
1086 ],
1087 },
1088 ],
1089 },
1090 &quot;dashboardFilters&quot;: [ # Filters to reduce the amount of data charted based on the filter criteria.
1091 { # A filter to reduce the amount of data charted in relevant widgets.
1092 &quot;filterType&quot;: &quot;A String&quot;, # The specified filter type
1093 &quot;labelKey&quot;: &quot;A String&quot;, # Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.
1094 &quot;stringArray&quot;: { # An array of strings # A list of possible string values for the filter
1095 &quot;values&quot;: [ # The values of the array
1096 &quot;A String&quot;,
1097 ],
1098 },
1099 &quot;stringArrayValue&quot;: { # An array of strings # An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED
1100 &quot;values&quot;: [ # The values of the array
1101 &quot;A String&quot;,
1102 ],
1103 },
1104 &quot;stringValue&quot;: &quot;A String&quot;, # A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED
1105 &quot;templateVariable&quot;: &quot;A String&quot;, # The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.
1106 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported
1107 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
1108 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
1109 },
1110 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
1111 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
1112 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
1113 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1114 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1115 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1116 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1117 &quot;A String&quot;,
1118 ],
1119 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1120 },
1121 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1122 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1123 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1124 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1125 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1126 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1127 },
1128 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1129 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1130 },
1131 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
1132 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1133 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1134 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1135 &quot;A String&quot;,
1136 ],
1137 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1138 },
1139 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1140 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1141 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1142 },
1143 },
1144 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
1145 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
1146 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1147 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1148 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1149 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1150 &quot;A String&quot;,
1151 ],
1152 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1153 },
1154 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1155 },
1156 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
1157 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1158 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1159 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1160 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1161 &quot;A String&quot;,
1162 ],
1163 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1164 },
1165 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1166 },
1167 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1168 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1169 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1170 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1171 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1172 },
1173 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1174 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1175 },
1176 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
1177 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1178 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1179 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1180 &quot;A String&quot;,
1181 ],
1182 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1183 },
1184 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1185 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1186 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1187 },
1188 },
1189 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
1190 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
1191 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
1192 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
1193 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
1194 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
1195 &quot;A String&quot;,
1196 ],
1197 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
1198 &quot;A String&quot;,
1199 ],
1200 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
1201 &quot;A String&quot;,
1202 ],
1203 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
1204 { # Span attribute key and list of values to be used for filtering.
1205 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
1206 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
1207 &quot;A String&quot;,
1208 ],
1209 },
1210 ],
1211 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
1212 &quot;A String&quot;,
1213 ],
1214 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
1215 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
1216 &quot;A String&quot;,
1217 ],
1218 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
1219 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
1220 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
1221 &quot;A String&quot;,
1222 ],
1223 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
1224 &quot;A String&quot;,
1225 ],
1226 },
1227 },
1228 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
1229 },
1230 &quot;valueType&quot;: &quot;A String&quot;, # The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.
1231 },
1232 ],
1233 &quot;displayName&quot;: &quot;A String&quot;, # Required. The mutable, human-readable name.
1234 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. An etag is returned in the response to GetDashboard, and users are expected to put that etag in the request to UpdateDashboard to ensure that their change will be applied to the same version of the Dashboard configuration. The field should not be passed during dashboard creation.
1235 &quot;gridLayout&quot;: { # A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy. # Content is arranged with a basic layout that re-flows a simple list of informational elements like widgets or tiles.
1236 &quot;columns&quot;: &quot;A String&quot;, # The number of columns into which the view&#x27;s width is divided. If omitted or set to zero, a system default will be used while rendering.
1237 &quot;widgets&quot;: [ # The informational elements that are arranged into the columns row-first.
1238 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
1239 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
1240 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
1241 },
1242 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
1243 },
1244 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
1245 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
1246 },
1247 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
1248 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
1249 &quot;A String&quot;,
1250 ],
1251 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
1252 &quot;A String&quot;,
1253 ],
1254 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
1255 &quot;A String&quot;,
1256 ],
1257 },
1258 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
1259 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
1260 },
1261 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
1262 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
1263 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
1264 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
1265 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
1266 &quot;a_key&quot;: &quot;A String&quot;,
1267 },
1268 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
1269 },
1270 ],
1271 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
1272 &quot;A String&quot;,
1273 ],
1274 },
1275 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
1276 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
1277 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
1278 &quot;A String&quot;,
1279 ],
1280 },
1281 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
1282 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
1283 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
1284 { # Groups a time series query definition.
1285 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
1286 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
1287 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
1288 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
1289 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
1290 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
1291 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
1292 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
1293 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
1294 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
1295 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
1296 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
1297 },
1298 ],
1299 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
1300 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
1301 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
1302 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
1303 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
1304 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
1305 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
1306 },
1307 ],
1308 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
1309 },
1310 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
1311 },
1312 ],
1313 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
1314 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
1315 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
1316 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
1317 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
1318 },
1319 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
1320 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
1321 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
1322 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1323 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1324 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1325 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1326 &quot;A String&quot;,
1327 ],
1328 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1329 },
1330 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1331 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1332 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1333 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1334 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1335 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1336 },
1337 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1338 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1339 },
1340 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
1341 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1342 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1343 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1344 &quot;A String&quot;,
1345 ],
1346 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1347 },
1348 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1349 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1350 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1351 },
1352 },
1353 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
1354 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
1355 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1356 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1357 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1358 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1359 &quot;A String&quot;,
1360 ],
1361 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1362 },
1363 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1364 },
1365 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
1366 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1367 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1368 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1369 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1370 &quot;A String&quot;,
1371 ],
1372 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1373 },
1374 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1375 },
1376 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1377 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1378 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1379 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1380 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1381 },
1382 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1383 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1384 },
1385 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
1386 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1387 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1388 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1389 &quot;A String&quot;,
1390 ],
1391 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1392 },
1393 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1394 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1395 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1396 },
1397 },
1398 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
1399 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
1400 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
1401 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
1402 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
1403 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
1404 &quot;A String&quot;,
1405 ],
1406 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
1407 &quot;A String&quot;,
1408 ],
1409 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
1410 &quot;A String&quot;,
1411 ],
1412 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
1413 { # Span attribute key and list of values to be used for filtering.
1414 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
1415 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
1416 &quot;A String&quot;,
1417 ],
1418 },
1419 ],
1420 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
1421 &quot;A String&quot;,
1422 ],
1423 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
1424 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
1425 &quot;A String&quot;,
1426 ],
1427 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
1428 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
1429 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
1430 &quot;A String&quot;,
1431 ],
1432 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
1433 &quot;A String&quot;,
1434 ],
1435 },
1436 },
1437 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
1438 },
1439 },
1440 ],
1441 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
1442 },
1443 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
1444 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
1445 },
1446 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
1447 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
1448 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
1449 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
1450 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
1451 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
1452 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
1453 },
1454 ],
1455 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
1456 },
1457 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
1458 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
1459 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
1460 },
1461 ],
1462 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
1463 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
1464 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
1465 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
1466 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
1467 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
1468 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
1469 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
1470 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
1471 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
1472 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
1473 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
1474 },
1475 ],
1476 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
1477 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
1478 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
1479 },
1480 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
1481 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
1482 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
1483 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
1484 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
1485 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
1486 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
1487 },
1488 ],
1489 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
1490 },
1491 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
1492 },
1493 ],
1494 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
1495 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
1496 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
1497 },
1498 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
1499 { # Defines a threshold for categorizing time series values.
1500 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
1501 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
1502 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
1503 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
1504 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
1505 },
1506 ],
1507 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
1508 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
1509 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
1510 },
1511 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
1512 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
1513 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
1514 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1515 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1516 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1517 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1518 &quot;A String&quot;,
1519 ],
1520 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1521 },
1522 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1523 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1524 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1525 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1526 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1527 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1528 },
1529 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1530 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1531 },
1532 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
1533 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1534 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1535 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1536 &quot;A String&quot;,
1537 ],
1538 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1539 },
1540 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1541 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1542 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1543 },
1544 },
1545 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
1546 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
1547 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1548 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1549 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1550 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1551 &quot;A String&quot;,
1552 ],
1553 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1554 },
1555 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1556 },
1557 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
1558 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1559 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1560 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1561 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1562 &quot;A String&quot;,
1563 ],
1564 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1565 },
1566 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1567 },
1568 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1569 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1570 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1571 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1572 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1573 },
1574 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1575 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1576 },
1577 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
1578 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1579 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1580 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1581 &quot;A String&quot;,
1582 ],
1583 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1584 },
1585 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1586 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1587 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1588 },
1589 },
1590 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
1591 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
1592 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
1593 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
1594 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
1595 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
1596 &quot;A String&quot;,
1597 ],
1598 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
1599 &quot;A String&quot;,
1600 ],
1601 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
1602 &quot;A String&quot;,
1603 ],
1604 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
1605 { # Span attribute key and list of values to be used for filtering.
1606 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
1607 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
1608 &quot;A String&quot;,
1609 ],
1610 },
1611 ],
1612 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
1613 &quot;A String&quot;,
1614 ],
1615 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
1616 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
1617 &quot;A String&quot;,
1618 ],
1619 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
1620 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
1621 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
1622 &quot;A String&quot;,
1623 ],
1624 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
1625 &quot;A String&quot;,
1626 ],
1627 },
1628 },
1629 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
1630 },
1631 },
1632 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
1633 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
1634 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
1635 },
1636 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
1637 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
1638 },
1639 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
1640 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
1641 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
1642 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
1643 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
1644 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
1645 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
1646 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
1647 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
1648 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
1649 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
1650 },
1651 },
1652 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
1653 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
1654 { # The persistent settings for a table&#x27;s columns.
1655 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
1656 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
1657 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
1658 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
1659 { # Defines a threshold for categorizing time series values.
1660 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
1661 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
1662 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
1663 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
1664 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
1665 },
1666 ],
1667 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
1668 },
1669 ],
1670 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
1671 { # Groups a time series query definition with table options.
1672 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
1673 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
1674 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
1675 &quot;A String&quot;,
1676 ],
1677 },
1678 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
1679 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
1680 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
1681 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
1682 },
1683 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
1684 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
1685 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
1686 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1687 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1688 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1689 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1690 &quot;A String&quot;,
1691 ],
1692 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1693 },
1694 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1695 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1696 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1697 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1698 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1699 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1700 },
1701 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1702 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1703 },
1704 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
1705 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1706 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1707 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1708 &quot;A String&quot;,
1709 ],
1710 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1711 },
1712 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1713 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1714 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1715 },
1716 },
1717 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
1718 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
1719 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1720 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1721 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1722 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1723 &quot;A String&quot;,
1724 ],
1725 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1726 },
1727 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1728 },
1729 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
1730 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1731 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1732 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1733 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1734 &quot;A String&quot;,
1735 ],
1736 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1737 },
1738 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1739 },
1740 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1741 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1742 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1743 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1744 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1745 },
1746 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1747 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1748 },
1749 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
1750 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1751 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1752 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1753 &quot;A String&quot;,
1754 ],
1755 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1756 },
1757 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1758 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1759 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1760 },
1761 },
1762 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
1763 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
1764 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
1765 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
1766 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
1767 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
1768 &quot;A String&quot;,
1769 ],
1770 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
1771 &quot;A String&quot;,
1772 ],
1773 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
1774 &quot;A String&quot;,
1775 ],
1776 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
1777 { # Span attribute key and list of values to be used for filtering.
1778 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
1779 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
1780 &quot;A String&quot;,
1781 ],
1782 },
1783 ],
1784 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
1785 &quot;A String&quot;,
1786 ],
1787 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
1788 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
1789 &quot;A String&quot;,
1790 ],
1791 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
1792 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
1793 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
1794 &quot;A String&quot;,
1795 ],
1796 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
1797 &quot;A String&quot;,
1798 ],
1799 },
1800 },
1801 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
1802 },
1803 },
1804 ],
1805 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
1806 },
1807 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
1808 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
1809 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
1810 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
1811 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
1812 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
1813 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
1814 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
1815 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
1816 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
1817 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
1818 },
1819 ],
1820 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
1821 },
1822 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
1823 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
1824 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
1825 },
1826 ],
1827 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
1828 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
1829 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
1830 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
1831 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
1832 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
1833 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
1834 },
1835 ],
1836 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
1837 },
1838 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
1839 },
1840 ],
1841 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
1842 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
1843 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
1844 },
1845 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
1846 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
1847 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
1848 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1849 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1850 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1851 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1852 &quot;A String&quot;,
1853 ],
1854 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1855 },
1856 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1857 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1858 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1859 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1860 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1861 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1862 },
1863 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1864 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1865 },
1866 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
1867 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1868 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1869 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1870 &quot;A String&quot;,
1871 ],
1872 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1873 },
1874 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1875 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1876 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1877 },
1878 },
1879 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
1880 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
1881 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1882 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1883 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1884 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1885 &quot;A String&quot;,
1886 ],
1887 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1888 },
1889 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1890 },
1891 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
1892 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
1893 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1894 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1895 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1896 &quot;A String&quot;,
1897 ],
1898 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1899 },
1900 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
1901 },
1902 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
1903 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
1904 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
1905 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
1906 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
1907 },
1908 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
1909 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
1910 },
1911 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
1912 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
1913 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
1914 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
1915 &quot;A String&quot;,
1916 ],
1917 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
1918 },
1919 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
1920 &quot;numTimeSeries&quot;: 42, # How many time series to output.
1921 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
1922 },
1923 },
1924 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
1925 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
1926 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
1927 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
1928 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
1929 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
1930 &quot;A String&quot;,
1931 ],
1932 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
1933 &quot;A String&quot;,
1934 ],
1935 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
1936 &quot;A String&quot;,
1937 ],
1938 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
1939 { # Span attribute key and list of values to be used for filtering.
1940 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
1941 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
1942 &quot;A String&quot;,
1943 ],
1944 },
1945 ],
1946 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
1947 &quot;A String&quot;,
1948 ],
1949 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
1950 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
1951 &quot;A String&quot;,
1952 ],
1953 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
1954 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
1955 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
1956 &quot;A String&quot;,
1957 ],
1958 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
1959 &quot;A String&quot;,
1960 ],
1961 },
1962 },
1963 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
1964 },
1965 },
1966 ],
1967 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
1968 &quot;A String&quot;,
1969 ],
1970 },
1971 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
1972 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
1973 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
1974 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
1975 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
1976 },
1977 },
1978 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
1979 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
1980 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
1981 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
1982 },
1983 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
1984 { # Groups a time series query definition with charting options.
1985 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
1986 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
1987 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
1988 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
1989 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
1990 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
1991 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
1992 },
1993 ],
1994 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
1995 },
1996 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
1997 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
1998 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
1999 },
2000 ],
2001 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
2002 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
2003 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
2004 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
2005 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
2006 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
2007 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
2008 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
2009 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
2010 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
2011 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
2012 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
2013 },
2014 ],
2015 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
2016 &quot;measures&quot;: [ # Optional. A collection of measures.
2017 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
2018 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
2019 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2020 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2021 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2022 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2023 },
2024 ],
2025 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2026 },
2027 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
2028 },
2029 ],
2030 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
2031 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
2032 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
2033 { # Data structure to storing column&#x27;s sort strategy
2034 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
2035 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
2036 },
2037 ],
2038 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
2039 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
2040 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
2041 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
2042 },
2043 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
2044 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
2045 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
2046 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2047 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2048 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2049 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2050 &quot;A String&quot;,
2051 ],
2052 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2053 },
2054 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2055 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2056 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2057 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2058 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2059 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2060 },
2061 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2062 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2063 },
2064 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
2065 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2066 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2067 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2068 &quot;A String&quot;,
2069 ],
2070 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2071 },
2072 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2073 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2074 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2075 },
2076 },
2077 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
2078 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
2079 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2080 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2081 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2082 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2083 &quot;A String&quot;,
2084 ],
2085 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2086 },
2087 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2088 },
2089 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
2090 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2091 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2092 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2093 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2094 &quot;A String&quot;,
2095 ],
2096 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2097 },
2098 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2099 },
2100 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2101 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2102 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2103 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2104 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2105 },
2106 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2107 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2108 },
2109 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
2110 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2111 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2112 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2113 &quot;A String&quot;,
2114 ],
2115 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2116 },
2117 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2118 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2119 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2120 },
2121 },
2122 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
2123 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
2124 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
2125 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
2126 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
2127 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
2128 &quot;A String&quot;,
2129 ],
2130 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
2131 &quot;A String&quot;,
2132 ],
2133 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
2134 &quot;A String&quot;,
2135 ],
2136 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
2137 { # Span attribute key and list of values to be used for filtering.
2138 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
2139 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
2140 &quot;A String&quot;,
2141 ],
2142 },
2143 ],
2144 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
2145 &quot;A String&quot;,
2146 ],
2147 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
2148 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
2149 &quot;A String&quot;,
2150 ],
2151 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
2152 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
2153 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
2154 &quot;A String&quot;,
2155 ],
2156 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
2157 &quot;A String&quot;,
2158 ],
2159 },
2160 },
2161 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
2162 },
2163 },
2164 ],
2165 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
2166 { # Defines a threshold for categorizing time series values.
2167 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
2168 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
2169 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
2170 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
2171 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
2172 },
2173 ],
2174 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
2175 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
2176 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
2177 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
2178 },
2179 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
2180 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
2181 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
2182 },
2183 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
2184 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
2185 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
2186 },
2187 },
2188 },
2189 ],
2190 },
2191 &quot;labels&quot;: { # Labels applied to the dashboard
2192 &quot;a_key&quot;: &quot;A String&quot;,
2193 },
2194 &quot;mosaicLayout&quot;: { # A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid. # The content is arranged as a grid of tiles, with each content widget occupying one or more grid blocks.
2195 &quot;columns&quot;: 42, # The number of columns in the mosaic grid. The number of columns must be between 1 and 48, inclusive.
2196 &quot;tiles&quot;: [ # The tiles to display.
2197 { # A single tile in the mosaic. The placement and size of the tile are configurable.
2198 &quot;height&quot;: 42, # The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
2199 &quot;widget&quot;: { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard. # The informational widget contained in the tile. For example an XyChart.
2200 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
2201 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
2202 },
2203 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
2204 },
2205 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
2206 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
2207 },
2208 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
2209 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
2210 &quot;A String&quot;,
2211 ],
2212 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
2213 &quot;A String&quot;,
2214 ],
2215 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
2216 &quot;A String&quot;,
2217 ],
2218 },
2219 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
2220 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
2221 },
2222 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
2223 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
2224 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
2225 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
2226 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
2227 &quot;a_key&quot;: &quot;A String&quot;,
2228 },
2229 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
2230 },
2231 ],
2232 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
2233 &quot;A String&quot;,
2234 ],
2235 },
2236 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
2237 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
2238 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
2239 &quot;A String&quot;,
2240 ],
2241 },
2242 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
2243 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
2244 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
2245 { # Groups a time series query definition.
2246 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
2247 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
2248 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
2249 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
2250 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
2251 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
2252 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
2253 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
2254 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
2255 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
2256 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
2257 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
2258 },
2259 ],
2260 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
2261 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
2262 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
2263 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2264 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2265 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2266 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2267 },
2268 ],
2269 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2270 },
2271 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
2272 },
2273 ],
2274 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
2275 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
2276 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
2277 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
2278 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
2279 },
2280 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
2281 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
2282 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
2283 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2284 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2285 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2286 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2287 &quot;A String&quot;,
2288 ],
2289 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2290 },
2291 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2292 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2293 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2294 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2295 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2296 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2297 },
2298 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2299 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2300 },
2301 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
2302 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2303 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2304 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2305 &quot;A String&quot;,
2306 ],
2307 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2308 },
2309 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2310 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2311 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2312 },
2313 },
2314 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
2315 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
2316 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2317 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2318 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2319 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2320 &quot;A String&quot;,
2321 ],
2322 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2323 },
2324 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2325 },
2326 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
2327 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2328 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2329 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2330 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2331 &quot;A String&quot;,
2332 ],
2333 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2334 },
2335 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2336 },
2337 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2338 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2339 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2340 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2341 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2342 },
2343 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2344 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2345 },
2346 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
2347 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2348 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2349 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2350 &quot;A String&quot;,
2351 ],
2352 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2353 },
2354 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2355 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2356 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2357 },
2358 },
2359 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
2360 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
2361 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
2362 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
2363 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
2364 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
2365 &quot;A String&quot;,
2366 ],
2367 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
2368 &quot;A String&quot;,
2369 ],
2370 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
2371 &quot;A String&quot;,
2372 ],
2373 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
2374 { # Span attribute key and list of values to be used for filtering.
2375 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
2376 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
2377 &quot;A String&quot;,
2378 ],
2379 },
2380 ],
2381 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
2382 &quot;A String&quot;,
2383 ],
2384 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
2385 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
2386 &quot;A String&quot;,
2387 ],
2388 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
2389 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
2390 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
2391 &quot;A String&quot;,
2392 ],
2393 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
2394 &quot;A String&quot;,
2395 ],
2396 },
2397 },
2398 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
2399 },
2400 },
2401 ],
2402 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
2403 },
2404 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
2405 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
2406 },
2407 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
2408 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
2409 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
2410 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2411 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2412 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2413 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2414 },
2415 ],
2416 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2417 },
2418 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
2419 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
2420 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
2421 },
2422 ],
2423 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
2424 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
2425 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
2426 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
2427 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
2428 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
2429 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
2430 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
2431 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
2432 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
2433 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
2434 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
2435 },
2436 ],
2437 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
2438 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
2439 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
2440 },
2441 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
2442 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
2443 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
2444 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2445 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2446 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2447 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2448 },
2449 ],
2450 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2451 },
2452 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
2453 },
2454 ],
2455 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
2456 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
2457 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
2458 },
2459 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
2460 { # Defines a threshold for categorizing time series values.
2461 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
2462 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
2463 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
2464 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
2465 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
2466 },
2467 ],
2468 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
2469 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
2470 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
2471 },
2472 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
2473 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
2474 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
2475 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2476 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2477 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2478 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2479 &quot;A String&quot;,
2480 ],
2481 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2482 },
2483 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2484 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2485 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2486 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2487 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2488 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2489 },
2490 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2491 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2492 },
2493 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
2494 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2495 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2496 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2497 &quot;A String&quot;,
2498 ],
2499 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2500 },
2501 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2502 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2503 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2504 },
2505 },
2506 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
2507 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
2508 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2509 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2510 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2511 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2512 &quot;A String&quot;,
2513 ],
2514 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2515 },
2516 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2517 },
2518 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
2519 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2520 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2521 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2522 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2523 &quot;A String&quot;,
2524 ],
2525 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2526 },
2527 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2528 },
2529 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2530 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2531 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2532 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2533 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2534 },
2535 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2536 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2537 },
2538 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
2539 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2540 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2541 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2542 &quot;A String&quot;,
2543 ],
2544 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2545 },
2546 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2547 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2548 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2549 },
2550 },
2551 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
2552 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
2553 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
2554 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
2555 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
2556 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
2557 &quot;A String&quot;,
2558 ],
2559 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
2560 &quot;A String&quot;,
2561 ],
2562 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
2563 &quot;A String&quot;,
2564 ],
2565 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
2566 { # Span attribute key and list of values to be used for filtering.
2567 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
2568 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
2569 &quot;A String&quot;,
2570 ],
2571 },
2572 ],
2573 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
2574 &quot;A String&quot;,
2575 ],
2576 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
2577 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
2578 &quot;A String&quot;,
2579 ],
2580 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
2581 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
2582 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
2583 &quot;A String&quot;,
2584 ],
2585 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
2586 &quot;A String&quot;,
2587 ],
2588 },
2589 },
2590 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
2591 },
2592 },
2593 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
2594 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
2595 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
2596 },
2597 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
2598 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
2599 },
2600 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
2601 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
2602 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
2603 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
2604 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
2605 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
2606 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
2607 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
2608 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
2609 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
2610 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
2611 },
2612 },
2613 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
2614 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
2615 { # The persistent settings for a table&#x27;s columns.
2616 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
2617 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
2618 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
2619 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
2620 { # Defines a threshold for categorizing time series values.
2621 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
2622 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
2623 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
2624 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
2625 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
2626 },
2627 ],
2628 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
2629 },
2630 ],
2631 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
2632 { # Groups a time series query definition with table options.
2633 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
2634 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
2635 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
2636 &quot;A String&quot;,
2637 ],
2638 },
2639 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
2640 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
2641 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
2642 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
2643 },
2644 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
2645 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
2646 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
2647 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2648 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2649 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2650 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2651 &quot;A String&quot;,
2652 ],
2653 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2654 },
2655 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2656 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2657 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2658 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2659 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2660 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2661 },
2662 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2663 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2664 },
2665 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
2666 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2667 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2668 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2669 &quot;A String&quot;,
2670 ],
2671 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2672 },
2673 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2674 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2675 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2676 },
2677 },
2678 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
2679 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
2680 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2681 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2682 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2683 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2684 &quot;A String&quot;,
2685 ],
2686 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2687 },
2688 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2689 },
2690 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
2691 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2692 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2693 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2694 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2695 &quot;A String&quot;,
2696 ],
2697 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2698 },
2699 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2700 },
2701 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2702 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2703 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2704 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2705 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2706 },
2707 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2708 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2709 },
2710 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
2711 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2712 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2713 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2714 &quot;A String&quot;,
2715 ],
2716 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2717 },
2718 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2719 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2720 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2721 },
2722 },
2723 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
2724 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
2725 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
2726 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
2727 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
2728 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
2729 &quot;A String&quot;,
2730 ],
2731 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
2732 &quot;A String&quot;,
2733 ],
2734 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
2735 &quot;A String&quot;,
2736 ],
2737 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
2738 { # Span attribute key and list of values to be used for filtering.
2739 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
2740 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
2741 &quot;A String&quot;,
2742 ],
2743 },
2744 ],
2745 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
2746 &quot;A String&quot;,
2747 ],
2748 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
2749 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
2750 &quot;A String&quot;,
2751 ],
2752 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
2753 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
2754 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
2755 &quot;A String&quot;,
2756 ],
2757 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
2758 &quot;A String&quot;,
2759 ],
2760 },
2761 },
2762 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
2763 },
2764 },
2765 ],
2766 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
2767 },
2768 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
2769 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
2770 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
2771 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
2772 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
2773 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
2774 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
2775 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2776 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2777 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2778 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2779 },
2780 ],
2781 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2782 },
2783 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
2784 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
2785 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
2786 },
2787 ],
2788 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
2789 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
2790 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
2791 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2792 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2793 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2794 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2795 },
2796 ],
2797 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2798 },
2799 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
2800 },
2801 ],
2802 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
2803 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
2804 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
2805 },
2806 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
2807 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
2808 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
2809 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2810 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2811 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2812 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2813 &quot;A String&quot;,
2814 ],
2815 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2816 },
2817 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2818 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2819 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2820 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2821 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2822 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2823 },
2824 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2825 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2826 },
2827 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
2828 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2829 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2830 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2831 &quot;A String&quot;,
2832 ],
2833 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2834 },
2835 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2836 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2837 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2838 },
2839 },
2840 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
2841 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
2842 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2843 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2844 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2845 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2846 &quot;A String&quot;,
2847 ],
2848 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2849 },
2850 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2851 },
2852 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
2853 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
2854 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2855 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2856 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2857 &quot;A String&quot;,
2858 ],
2859 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2860 },
2861 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
2862 },
2863 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
2864 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
2865 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
2866 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
2867 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
2868 },
2869 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
2870 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
2871 },
2872 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
2873 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
2874 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
2875 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
2876 &quot;A String&quot;,
2877 ],
2878 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
2879 },
2880 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
2881 &quot;numTimeSeries&quot;: 42, # How many time series to output.
2882 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
2883 },
2884 },
2885 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
2886 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
2887 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
2888 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
2889 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
2890 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
2891 &quot;A String&quot;,
2892 ],
2893 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
2894 &quot;A String&quot;,
2895 ],
2896 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
2897 &quot;A String&quot;,
2898 ],
2899 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
2900 { # Span attribute key and list of values to be used for filtering.
2901 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
2902 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
2903 &quot;A String&quot;,
2904 ],
2905 },
2906 ],
2907 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
2908 &quot;A String&quot;,
2909 ],
2910 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
2911 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
2912 &quot;A String&quot;,
2913 ],
2914 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
2915 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
2916 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
2917 &quot;A String&quot;,
2918 ],
2919 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
2920 &quot;A String&quot;,
2921 ],
2922 },
2923 },
2924 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
2925 },
2926 },
2927 ],
2928 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
2929 &quot;A String&quot;,
2930 ],
2931 },
2932 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
2933 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
2934 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
2935 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
2936 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
2937 },
2938 },
2939 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
2940 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
2941 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
2942 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
2943 },
2944 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
2945 { # Groups a time series query definition with charting options.
2946 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
2947 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
2948 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
2949 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2950 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2951 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2952 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2953 },
2954 ],
2955 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2956 },
2957 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
2958 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
2959 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
2960 },
2961 ],
2962 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
2963 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
2964 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
2965 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
2966 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
2967 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
2968 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
2969 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
2970 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
2971 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
2972 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
2973 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
2974 },
2975 ],
2976 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
2977 &quot;measures&quot;: [ # Optional. A collection of measures.
2978 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
2979 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
2980 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
2981 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
2982 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
2983 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
2984 },
2985 ],
2986 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
2987 },
2988 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
2989 },
2990 ],
2991 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
2992 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
2993 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
2994 { # Data structure to storing column&#x27;s sort strategy
2995 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
2996 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
2997 },
2998 ],
2999 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
3000 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
3001 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
3002 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
3003 },
3004 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
3005 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
3006 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
3007 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3008 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3009 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3010 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3011 &quot;A String&quot;,
3012 ],
3013 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3014 },
3015 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3016 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3017 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3018 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3019 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3020 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3021 },
3022 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3023 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3024 },
3025 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
3026 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3027 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3028 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3029 &quot;A String&quot;,
3030 ],
3031 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3032 },
3033 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3034 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3035 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3036 },
3037 },
3038 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
3039 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
3040 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3041 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3042 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3043 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3044 &quot;A String&quot;,
3045 ],
3046 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3047 },
3048 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3049 },
3050 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
3051 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3052 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3053 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3054 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3055 &quot;A String&quot;,
3056 ],
3057 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3058 },
3059 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3060 },
3061 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3062 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3063 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3064 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3065 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3066 },
3067 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3068 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3069 },
3070 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
3071 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3072 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3073 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3074 &quot;A String&quot;,
3075 ],
3076 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3077 },
3078 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3079 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3080 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3081 },
3082 },
3083 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
3084 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
3085 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
3086 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
3087 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
3088 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
3089 &quot;A String&quot;,
3090 ],
3091 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
3092 &quot;A String&quot;,
3093 ],
3094 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
3095 &quot;A String&quot;,
3096 ],
3097 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
3098 { # Span attribute key and list of values to be used for filtering.
3099 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
3100 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
3101 &quot;A String&quot;,
3102 ],
3103 },
3104 ],
3105 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
3106 &quot;A String&quot;,
3107 ],
3108 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
3109 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
3110 &quot;A String&quot;,
3111 ],
3112 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
3113 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
3114 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
3115 &quot;A String&quot;,
3116 ],
3117 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
3118 &quot;A String&quot;,
3119 ],
3120 },
3121 },
3122 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
3123 },
3124 },
3125 ],
3126 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
3127 { # Defines a threshold for categorizing time series values.
3128 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
3129 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
3130 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
3131 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
3132 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
3133 },
3134 ],
3135 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
3136 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
3137 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
3138 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
3139 },
3140 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
3141 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
3142 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
3143 },
3144 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
3145 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
3146 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
3147 },
3148 },
3149 },
3150 &quot;width&quot;: 42, # The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
3151 &quot;xPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
3152 &quot;yPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
3153 },
3154 ],
3155 },
3156 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dashboard.
3157 &quot;rowLayout&quot;: { # A simplified layout that divides the available space into rows and arranges a set of widgets horizontally in each row. # The content is divided into equally spaced rows and the widgets are arranged horizontally.
3158 &quot;rows&quot;: [ # The rows of content to display.
3159 { # Defines the layout properties and content for a row.
3160 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.
3161 &quot;widgets&quot;: [ # The display widgets arranged horizontally in this row.
3162 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
3163 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
3164 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
3165 },
3166 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
3167 },
3168 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
3169 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
3170 },
3171 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
3172 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
3173 &quot;A String&quot;,
3174 ],
3175 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
3176 &quot;A String&quot;,
3177 ],
3178 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
3179 &quot;A String&quot;,
3180 ],
3181 },
3182 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
3183 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
3184 },
3185 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
3186 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
3187 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
3188 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
3189 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
3190 &quot;a_key&quot;: &quot;A String&quot;,
3191 },
3192 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
3193 },
3194 ],
3195 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
3196 &quot;A String&quot;,
3197 ],
3198 },
3199 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
3200 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
3201 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
3202 &quot;A String&quot;,
3203 ],
3204 },
3205 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
3206 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
3207 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
3208 { # Groups a time series query definition.
3209 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
3210 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
3211 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
3212 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
3213 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
3214 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
3215 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
3216 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
3217 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
3218 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
3219 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
3220 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
3221 },
3222 ],
3223 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
3224 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
3225 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
3226 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3227 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3228 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3229 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3230 },
3231 ],
3232 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3233 },
3234 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
3235 },
3236 ],
3237 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
3238 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
3239 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
3240 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
3241 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
3242 },
3243 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
3244 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
3245 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
3246 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3247 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3248 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3249 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3250 &quot;A String&quot;,
3251 ],
3252 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3253 },
3254 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3255 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3256 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3257 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3258 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3259 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3260 },
3261 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3262 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3263 },
3264 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
3265 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3266 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3267 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3268 &quot;A String&quot;,
3269 ],
3270 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3271 },
3272 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3273 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3274 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3275 },
3276 },
3277 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
3278 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
3279 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3280 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3281 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3282 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3283 &quot;A String&quot;,
3284 ],
3285 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3286 },
3287 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3288 },
3289 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
3290 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3291 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3292 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3293 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3294 &quot;A String&quot;,
3295 ],
3296 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3297 },
3298 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3299 },
3300 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3301 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3302 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3303 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3304 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3305 },
3306 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3307 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3308 },
3309 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
3310 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3311 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3312 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3313 &quot;A String&quot;,
3314 ],
3315 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3316 },
3317 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3318 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3319 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3320 },
3321 },
3322 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
3323 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
3324 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
3325 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
3326 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
3327 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
3328 &quot;A String&quot;,
3329 ],
3330 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
3331 &quot;A String&quot;,
3332 ],
3333 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
3334 &quot;A String&quot;,
3335 ],
3336 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
3337 { # Span attribute key and list of values to be used for filtering.
3338 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
3339 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
3340 &quot;A String&quot;,
3341 ],
3342 },
3343 ],
3344 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
3345 &quot;A String&quot;,
3346 ],
3347 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
3348 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
3349 &quot;A String&quot;,
3350 ],
3351 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
3352 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
3353 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
3354 &quot;A String&quot;,
3355 ],
3356 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
3357 &quot;A String&quot;,
3358 ],
3359 },
3360 },
3361 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
3362 },
3363 },
3364 ],
3365 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
3366 },
3367 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
3368 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
3369 },
3370 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
3371 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
3372 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
3373 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3374 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3375 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3376 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3377 },
3378 ],
3379 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3380 },
3381 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
3382 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
3383 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
3384 },
3385 ],
3386 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
3387 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
3388 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
3389 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
3390 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
3391 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
3392 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
3393 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
3394 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
3395 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
3396 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
3397 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
3398 },
3399 ],
3400 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
3401 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
3402 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
3403 },
3404 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
3405 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
3406 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
3407 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3408 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3409 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3410 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3411 },
3412 ],
3413 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3414 },
3415 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
3416 },
3417 ],
3418 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
3419 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
3420 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
3421 },
3422 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
3423 { # Defines a threshold for categorizing time series values.
3424 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
3425 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
3426 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
3427 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
3428 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
3429 },
3430 ],
3431 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
3432 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
3433 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
3434 },
3435 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
3436 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
3437 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
3438 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3439 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3440 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3441 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3442 &quot;A String&quot;,
3443 ],
3444 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3445 },
3446 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3447 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3448 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3449 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3450 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3451 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3452 },
3453 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3454 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3455 },
3456 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
3457 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3458 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3459 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3460 &quot;A String&quot;,
3461 ],
3462 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3463 },
3464 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3465 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3466 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3467 },
3468 },
3469 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
3470 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
3471 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3472 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3473 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3474 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3475 &quot;A String&quot;,
3476 ],
3477 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3478 },
3479 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3480 },
3481 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
3482 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3483 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3484 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3485 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3486 &quot;A String&quot;,
3487 ],
3488 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3489 },
3490 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3491 },
3492 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3493 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3494 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3495 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3496 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3497 },
3498 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3499 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3500 },
3501 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
3502 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3503 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3504 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3505 &quot;A String&quot;,
3506 ],
3507 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3508 },
3509 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3510 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3511 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3512 },
3513 },
3514 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
3515 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
3516 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
3517 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
3518 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
3519 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
3520 &quot;A String&quot;,
3521 ],
3522 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
3523 &quot;A String&quot;,
3524 ],
3525 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
3526 &quot;A String&quot;,
3527 ],
3528 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
3529 { # Span attribute key and list of values to be used for filtering.
3530 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
3531 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
3532 &quot;A String&quot;,
3533 ],
3534 },
3535 ],
3536 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
3537 &quot;A String&quot;,
3538 ],
3539 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
3540 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
3541 &quot;A String&quot;,
3542 ],
3543 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
3544 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
3545 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
3546 &quot;A String&quot;,
3547 ],
3548 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
3549 &quot;A String&quot;,
3550 ],
3551 },
3552 },
3553 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
3554 },
3555 },
3556 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
3557 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
3558 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
3559 },
3560 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
3561 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
3562 },
3563 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
3564 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
3565 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
3566 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
3567 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
3568 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
3569 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
3570 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
3571 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
3572 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
3573 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
3574 },
3575 },
3576 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
3577 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
3578 { # The persistent settings for a table&#x27;s columns.
3579 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
3580 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
3581 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
3582 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
3583 { # Defines a threshold for categorizing time series values.
3584 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
3585 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
3586 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
3587 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
3588 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
3589 },
3590 ],
3591 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
3592 },
3593 ],
3594 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
3595 { # Groups a time series query definition with table options.
3596 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
3597 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
3598 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
3599 &quot;A String&quot;,
3600 ],
3601 },
3602 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
3603 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
3604 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
3605 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
3606 },
3607 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
3608 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
3609 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
3610 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3611 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3612 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3613 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3614 &quot;A String&quot;,
3615 ],
3616 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3617 },
3618 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3619 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3620 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3621 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3622 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3623 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3624 },
3625 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3626 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3627 },
3628 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
3629 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3630 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3631 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3632 &quot;A String&quot;,
3633 ],
3634 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3635 },
3636 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3637 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3638 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3639 },
3640 },
3641 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
3642 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
3643 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3644 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3645 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3646 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3647 &quot;A String&quot;,
3648 ],
3649 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3650 },
3651 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3652 },
3653 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
3654 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3655 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3656 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3657 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3658 &quot;A String&quot;,
3659 ],
3660 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3661 },
3662 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3663 },
3664 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3665 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3666 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3667 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3668 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3669 },
3670 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3671 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3672 },
3673 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
3674 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3675 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3676 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3677 &quot;A String&quot;,
3678 ],
3679 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3680 },
3681 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3682 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3683 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3684 },
3685 },
3686 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
3687 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
3688 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
3689 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
3690 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
3691 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
3692 &quot;A String&quot;,
3693 ],
3694 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
3695 &quot;A String&quot;,
3696 ],
3697 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
3698 &quot;A String&quot;,
3699 ],
3700 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
3701 { # Span attribute key and list of values to be used for filtering.
3702 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
3703 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
3704 &quot;A String&quot;,
3705 ],
3706 },
3707 ],
3708 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
3709 &quot;A String&quot;,
3710 ],
3711 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
3712 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
3713 &quot;A String&quot;,
3714 ],
3715 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
3716 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
3717 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
3718 &quot;A String&quot;,
3719 ],
3720 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
3721 &quot;A String&quot;,
3722 ],
3723 },
3724 },
3725 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
3726 },
3727 },
3728 ],
3729 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
3730 },
3731 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
3732 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
3733 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
3734 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
3735 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
3736 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
3737 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
3738 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3739 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3740 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3741 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3742 },
3743 ],
3744 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3745 },
3746 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
3747 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
3748 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
3749 },
3750 ],
3751 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
3752 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
3753 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
3754 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3755 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3756 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3757 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3758 },
3759 ],
3760 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3761 },
3762 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
3763 },
3764 ],
3765 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
3766 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
3767 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
3768 },
3769 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
3770 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
3771 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
3772 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3773 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3774 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3775 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3776 &quot;A String&quot;,
3777 ],
3778 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3779 },
3780 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3781 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3782 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3783 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3784 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3785 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3786 },
3787 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3788 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3789 },
3790 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
3791 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3792 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3793 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3794 &quot;A String&quot;,
3795 ],
3796 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3797 },
3798 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3799 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3800 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3801 },
3802 },
3803 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
3804 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
3805 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3806 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3807 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3808 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3809 &quot;A String&quot;,
3810 ],
3811 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3812 },
3813 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3814 },
3815 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
3816 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3817 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3818 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3819 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3820 &quot;A String&quot;,
3821 ],
3822 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3823 },
3824 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3825 },
3826 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3827 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3828 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3829 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3830 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3831 },
3832 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3833 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3834 },
3835 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
3836 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3837 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3838 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3839 &quot;A String&quot;,
3840 ],
3841 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3842 },
3843 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3844 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3845 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3846 },
3847 },
3848 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
3849 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
3850 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
3851 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
3852 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
3853 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
3854 &quot;A String&quot;,
3855 ],
3856 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
3857 &quot;A String&quot;,
3858 ],
3859 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
3860 &quot;A String&quot;,
3861 ],
3862 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
3863 { # Span attribute key and list of values to be used for filtering.
3864 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
3865 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
3866 &quot;A String&quot;,
3867 ],
3868 },
3869 ],
3870 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
3871 &quot;A String&quot;,
3872 ],
3873 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
3874 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
3875 &quot;A String&quot;,
3876 ],
3877 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
3878 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
3879 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
3880 &quot;A String&quot;,
3881 ],
3882 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
3883 &quot;A String&quot;,
3884 ],
3885 },
3886 },
3887 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
3888 },
3889 },
3890 ],
3891 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
3892 &quot;A String&quot;,
3893 ],
3894 },
3895 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
3896 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
3897 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
3898 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
3899 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
3900 },
3901 },
3902 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
3903 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
3904 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
3905 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
3906 },
3907 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
3908 { # Groups a time series query definition with charting options.
3909 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
3910 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
3911 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
3912 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3913 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3914 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3915 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3916 },
3917 ],
3918 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3919 },
3920 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
3921 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
3922 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
3923 },
3924 ],
3925 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
3926 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
3927 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
3928 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
3929 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
3930 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
3931 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
3932 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
3933 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
3934 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
3935 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
3936 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
3937 },
3938 ],
3939 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
3940 &quot;measures&quot;: [ # Optional. A collection of measures.
3941 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
3942 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
3943 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
3944 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
3945 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
3946 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
3947 },
3948 ],
3949 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
3950 },
3951 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
3952 },
3953 ],
3954 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
3955 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
3956 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
3957 { # Data structure to storing column&#x27;s sort strategy
3958 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
3959 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
3960 },
3961 ],
3962 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
3963 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
3964 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
3965 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
3966 },
3967 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
3968 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
3969 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
3970 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
3971 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3972 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3973 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3974 &quot;A String&quot;,
3975 ],
3976 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3977 },
3978 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
3979 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
3980 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
3981 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
3982 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
3983 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
3984 },
3985 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
3986 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
3987 },
3988 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
3989 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
3990 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
3991 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
3992 &quot;A String&quot;,
3993 ],
3994 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
3995 },
3996 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
3997 &quot;numTimeSeries&quot;: 42, # How many time series to output.
3998 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
3999 },
4000 },
4001 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
4002 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
4003 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4004 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4005 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4006 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4007 &quot;A String&quot;,
4008 ],
4009 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4010 },
4011 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4012 },
4013 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
4014 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4015 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4016 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4017 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4018 &quot;A String&quot;,
4019 ],
4020 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4021 },
4022 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4023 },
4024 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4025 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4026 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4027 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4028 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4029 },
4030 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4031 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4032 },
4033 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
4034 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4035 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4036 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4037 &quot;A String&quot;,
4038 ],
4039 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4040 },
4041 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4042 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4043 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4044 },
4045 },
4046 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
4047 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
4048 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
4049 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
4050 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
4051 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
4052 &quot;A String&quot;,
4053 ],
4054 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
4055 &quot;A String&quot;,
4056 ],
4057 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
4058 &quot;A String&quot;,
4059 ],
4060 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
4061 { # Span attribute key and list of values to be used for filtering.
4062 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
4063 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
4064 &quot;A String&quot;,
4065 ],
4066 },
4067 ],
4068 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
4069 &quot;A String&quot;,
4070 ],
4071 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
4072 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
4073 &quot;A String&quot;,
4074 ],
4075 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
4076 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
4077 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
4078 &quot;A String&quot;,
4079 ],
4080 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
4081 &quot;A String&quot;,
4082 ],
4083 },
4084 },
4085 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
4086 },
4087 },
4088 ],
4089 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
4090 { # Defines a threshold for categorizing time series values.
4091 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
4092 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
4093 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
4094 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
4095 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
4096 },
4097 ],
4098 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
4099 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
4100 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
4101 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
4102 },
4103 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
4104 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
4105 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
4106 },
4107 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
4108 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
4109 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
4110 },
4111 },
4112 },
4113 ],
4114 },
4115 ],
4116 },
4117 }
4118
4119 validateOnly: boolean, If set, validate the request and preview the review, but do not actually save it.
4120 x__xgafv: string, V1 error format.
4121 Allowed values
4122 1 - v1 error format
4123 2 - v2 error format
4124
4125 Returns:
4126 An object of the form:
4127
4128 { # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
4129 &quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
4130 &quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
4131 &quot;A String&quot;,
4132 ],
4133 &quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
4134 { # Annotation configuration for one event type on a dashboard
4135 &quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
4136 &quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
4137 &quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
4138 &quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
4139 &quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
4140 &quot;A String&quot;,
4141 ],
4142 },
4143 ],
4144 },
4145 &quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
4146 &quot;columns&quot;: [ # The columns of content to display.
4147 { # Defines the layout properties and content for a column.
4148 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this column. The column weight is used to adjust the width of columns on the screen (relative to peers). Greater the weight, greater the width of the column on the screen. If omitted, a value of 1 is used while rendering.
4149 &quot;widgets&quot;: [ # The display widgets arranged vertically in this column.
4150 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
4151 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
4152 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
4153 },
4154 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
4155 },
4156 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
4157 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
4158 },
4159 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
4160 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
4161 &quot;A String&quot;,
4162 ],
4163 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
4164 &quot;A String&quot;,
4165 ],
4166 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
4167 &quot;A String&quot;,
4168 ],
4169 },
4170 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
4171 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
4172 },
4173 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
4174 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
4175 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
4176 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
4177 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
4178 &quot;a_key&quot;: &quot;A String&quot;,
4179 },
4180 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
4181 },
4182 ],
4183 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
4184 &quot;A String&quot;,
4185 ],
4186 },
4187 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
4188 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
4189 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
4190 &quot;A String&quot;,
4191 ],
4192 },
4193 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
4194 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
4195 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
4196 { # Groups a time series query definition.
4197 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
4198 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
4199 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
4200 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
4201 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
4202 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
4203 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
4204 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
4205 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
4206 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
4207 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
4208 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
4209 },
4210 ],
4211 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
4212 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
4213 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
4214 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4215 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4216 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4217 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4218 },
4219 ],
4220 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4221 },
4222 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
4223 },
4224 ],
4225 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
4226 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
4227 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
4228 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
4229 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
4230 },
4231 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
4232 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
4233 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
4234 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4235 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4236 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4237 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4238 &quot;A String&quot;,
4239 ],
4240 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4241 },
4242 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4243 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4244 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4245 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4246 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4247 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4248 },
4249 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4250 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4251 },
4252 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
4253 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4254 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4255 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4256 &quot;A String&quot;,
4257 ],
4258 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4259 },
4260 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4261 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4262 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4263 },
4264 },
4265 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
4266 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
4267 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4268 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4269 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4270 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4271 &quot;A String&quot;,
4272 ],
4273 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4274 },
4275 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4276 },
4277 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
4278 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4279 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4280 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4281 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4282 &quot;A String&quot;,
4283 ],
4284 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4285 },
4286 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4287 },
4288 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4289 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4290 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4291 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4292 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4293 },
4294 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4295 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4296 },
4297 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
4298 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4299 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4300 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4301 &quot;A String&quot;,
4302 ],
4303 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4304 },
4305 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4306 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4307 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4308 },
4309 },
4310 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
4311 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
4312 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
4313 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
4314 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
4315 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
4316 &quot;A String&quot;,
4317 ],
4318 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
4319 &quot;A String&quot;,
4320 ],
4321 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
4322 &quot;A String&quot;,
4323 ],
4324 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
4325 { # Span attribute key and list of values to be used for filtering.
4326 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
4327 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
4328 &quot;A String&quot;,
4329 ],
4330 },
4331 ],
4332 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
4333 &quot;A String&quot;,
4334 ],
4335 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
4336 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
4337 &quot;A String&quot;,
4338 ],
4339 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
4340 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
4341 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
4342 &quot;A String&quot;,
4343 ],
4344 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
4345 &quot;A String&quot;,
4346 ],
4347 },
4348 },
4349 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
4350 },
4351 },
4352 ],
4353 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
4354 },
4355 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
4356 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
4357 },
4358 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
4359 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
4360 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
4361 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4362 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4363 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4364 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4365 },
4366 ],
4367 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4368 },
4369 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
4370 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
4371 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
4372 },
4373 ],
4374 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
4375 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
4376 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
4377 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
4378 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
4379 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
4380 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
4381 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
4382 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
4383 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
4384 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
4385 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
4386 },
4387 ],
4388 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
4389 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
4390 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
4391 },
4392 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
4393 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
4394 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
4395 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4396 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4397 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4398 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4399 },
4400 ],
4401 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4402 },
4403 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
4404 },
4405 ],
4406 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
4407 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
4408 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
4409 },
4410 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
4411 { # Defines a threshold for categorizing time series values.
4412 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
4413 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
4414 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
4415 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
4416 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
4417 },
4418 ],
4419 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
4420 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
4421 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
4422 },
4423 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
4424 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
4425 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
4426 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4427 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4428 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4429 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4430 &quot;A String&quot;,
4431 ],
4432 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4433 },
4434 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4435 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4436 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4437 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4438 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4439 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4440 },
4441 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4442 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4443 },
4444 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
4445 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4446 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4447 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4448 &quot;A String&quot;,
4449 ],
4450 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4451 },
4452 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4453 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4454 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4455 },
4456 },
4457 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
4458 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
4459 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4460 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4461 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4462 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4463 &quot;A String&quot;,
4464 ],
4465 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4466 },
4467 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4468 },
4469 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
4470 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4471 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4472 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4473 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4474 &quot;A String&quot;,
4475 ],
4476 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4477 },
4478 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4479 },
4480 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4481 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4482 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4483 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4484 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4485 },
4486 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4487 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4488 },
4489 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
4490 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4491 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4492 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4493 &quot;A String&quot;,
4494 ],
4495 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4496 },
4497 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4498 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4499 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4500 },
4501 },
4502 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
4503 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
4504 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
4505 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
4506 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
4507 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
4508 &quot;A String&quot;,
4509 ],
4510 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
4511 &quot;A String&quot;,
4512 ],
4513 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
4514 &quot;A String&quot;,
4515 ],
4516 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
4517 { # Span attribute key and list of values to be used for filtering.
4518 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
4519 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
4520 &quot;A String&quot;,
4521 ],
4522 },
4523 ],
4524 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
4525 &quot;A String&quot;,
4526 ],
4527 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
4528 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
4529 &quot;A String&quot;,
4530 ],
4531 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
4532 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
4533 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
4534 &quot;A String&quot;,
4535 ],
4536 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
4537 &quot;A String&quot;,
4538 ],
4539 },
4540 },
4541 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
4542 },
4543 },
4544 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
4545 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
4546 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
4547 },
4548 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
4549 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
4550 },
4551 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
4552 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
4553 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
4554 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
4555 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
4556 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
4557 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
4558 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
4559 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
4560 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
4561 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
4562 },
4563 },
4564 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
4565 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
4566 { # The persistent settings for a table&#x27;s columns.
4567 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
4568 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
4569 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
4570 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
4571 { # Defines a threshold for categorizing time series values.
4572 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
4573 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
4574 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
4575 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
4576 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
4577 },
4578 ],
4579 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
4580 },
4581 ],
4582 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
4583 { # Groups a time series query definition with table options.
4584 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
4585 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
4586 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
4587 &quot;A String&quot;,
4588 ],
4589 },
4590 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
4591 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
4592 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
4593 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
4594 },
4595 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
4596 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
4597 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
4598 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4599 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4600 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4601 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4602 &quot;A String&quot;,
4603 ],
4604 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4605 },
4606 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4607 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4608 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4609 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4610 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4611 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4612 },
4613 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4614 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4615 },
4616 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
4617 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4618 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4619 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4620 &quot;A String&quot;,
4621 ],
4622 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4623 },
4624 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4625 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4626 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4627 },
4628 },
4629 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
4630 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
4631 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4632 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4633 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4634 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4635 &quot;A String&quot;,
4636 ],
4637 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4638 },
4639 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4640 },
4641 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
4642 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4643 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4644 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4645 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4646 &quot;A String&quot;,
4647 ],
4648 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4649 },
4650 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4651 },
4652 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4653 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4654 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4655 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4656 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4657 },
4658 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4659 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4660 },
4661 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
4662 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4663 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4664 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4665 &quot;A String&quot;,
4666 ],
4667 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4668 },
4669 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4670 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4671 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4672 },
4673 },
4674 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
4675 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
4676 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
4677 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
4678 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
4679 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
4680 &quot;A String&quot;,
4681 ],
4682 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
4683 &quot;A String&quot;,
4684 ],
4685 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
4686 &quot;A String&quot;,
4687 ],
4688 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
4689 { # Span attribute key and list of values to be used for filtering.
4690 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
4691 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
4692 &quot;A String&quot;,
4693 ],
4694 },
4695 ],
4696 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
4697 &quot;A String&quot;,
4698 ],
4699 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
4700 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
4701 &quot;A String&quot;,
4702 ],
4703 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
4704 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
4705 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
4706 &quot;A String&quot;,
4707 ],
4708 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
4709 &quot;A String&quot;,
4710 ],
4711 },
4712 },
4713 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
4714 },
4715 },
4716 ],
4717 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
4718 },
4719 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
4720 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
4721 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
4722 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
4723 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
4724 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
4725 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
4726 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4727 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4728 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4729 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4730 },
4731 ],
4732 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4733 },
4734 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
4735 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
4736 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
4737 },
4738 ],
4739 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
4740 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
4741 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
4742 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4743 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4744 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4745 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4746 },
4747 ],
4748 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4749 },
4750 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
4751 },
4752 ],
4753 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
4754 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
4755 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
4756 },
4757 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
4758 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
4759 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
4760 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4761 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4762 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4763 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4764 &quot;A String&quot;,
4765 ],
4766 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4767 },
4768 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4769 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4770 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4771 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4772 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4773 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4774 },
4775 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4776 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4777 },
4778 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
4779 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4780 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4781 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4782 &quot;A String&quot;,
4783 ],
4784 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4785 },
4786 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4787 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4788 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4789 },
4790 },
4791 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
4792 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
4793 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4794 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4795 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4796 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4797 &quot;A String&quot;,
4798 ],
4799 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4800 },
4801 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4802 },
4803 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
4804 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4805 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4806 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4807 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4808 &quot;A String&quot;,
4809 ],
4810 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4811 },
4812 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4813 },
4814 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4815 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4816 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4817 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4818 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4819 },
4820 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4821 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4822 },
4823 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
4824 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4825 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4826 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4827 &quot;A String&quot;,
4828 ],
4829 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4830 },
4831 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4832 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4833 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4834 },
4835 },
4836 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
4837 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
4838 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
4839 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
4840 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
4841 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
4842 &quot;A String&quot;,
4843 ],
4844 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
4845 &quot;A String&quot;,
4846 ],
4847 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
4848 &quot;A String&quot;,
4849 ],
4850 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
4851 { # Span attribute key and list of values to be used for filtering.
4852 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
4853 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
4854 &quot;A String&quot;,
4855 ],
4856 },
4857 ],
4858 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
4859 &quot;A String&quot;,
4860 ],
4861 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
4862 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
4863 &quot;A String&quot;,
4864 ],
4865 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
4866 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
4867 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
4868 &quot;A String&quot;,
4869 ],
4870 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
4871 &quot;A String&quot;,
4872 ],
4873 },
4874 },
4875 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
4876 },
4877 },
4878 ],
4879 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
4880 &quot;A String&quot;,
4881 ],
4882 },
4883 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
4884 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
4885 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
4886 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
4887 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
4888 },
4889 },
4890 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
4891 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
4892 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
4893 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
4894 },
4895 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
4896 { # Groups a time series query definition with charting options.
4897 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
4898 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
4899 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
4900 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4901 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4902 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4903 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4904 },
4905 ],
4906 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4907 },
4908 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
4909 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
4910 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
4911 },
4912 ],
4913 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
4914 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
4915 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
4916 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
4917 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
4918 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
4919 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
4920 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
4921 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
4922 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
4923 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
4924 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
4925 },
4926 ],
4927 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
4928 &quot;measures&quot;: [ # Optional. A collection of measures.
4929 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
4930 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
4931 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
4932 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
4933 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
4934 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
4935 },
4936 ],
4937 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
4938 },
4939 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
4940 },
4941 ],
4942 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
4943 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
4944 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
4945 { # Data structure to storing column&#x27;s sort strategy
4946 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
4947 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
4948 },
4949 ],
4950 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
4951 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
4952 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
4953 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
4954 },
4955 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
4956 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
4957 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
4958 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4959 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4960 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4961 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4962 &quot;A String&quot;,
4963 ],
4964 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4965 },
4966 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
4967 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
4968 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
4969 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
4970 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
4971 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
4972 },
4973 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
4974 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
4975 },
4976 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
4977 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4978 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4979 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4980 &quot;A String&quot;,
4981 ],
4982 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4983 },
4984 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
4985 &quot;numTimeSeries&quot;: 42, # How many time series to output.
4986 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
4987 },
4988 },
4989 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
4990 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
4991 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
4992 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
4993 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
4994 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
4995 &quot;A String&quot;,
4996 ],
4997 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
4998 },
4999 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5000 },
5001 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
5002 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5003 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5004 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5005 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5006 &quot;A String&quot;,
5007 ],
5008 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5009 },
5010 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5011 },
5012 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5013 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5014 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5015 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5016 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5017 },
5018 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5019 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5020 },
5021 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
5022 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5023 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5024 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5025 &quot;A String&quot;,
5026 ],
5027 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5028 },
5029 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5030 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5031 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5032 },
5033 },
5034 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
5035 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
5036 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
5037 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
5038 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
5039 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
5040 &quot;A String&quot;,
5041 ],
5042 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
5043 &quot;A String&quot;,
5044 ],
5045 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
5046 &quot;A String&quot;,
5047 ],
5048 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
5049 { # Span attribute key and list of values to be used for filtering.
5050 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
5051 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
5052 &quot;A String&quot;,
5053 ],
5054 },
5055 ],
5056 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
5057 &quot;A String&quot;,
5058 ],
5059 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
5060 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
5061 &quot;A String&quot;,
5062 ],
5063 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
5064 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
5065 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
5066 &quot;A String&quot;,
5067 ],
5068 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
5069 &quot;A String&quot;,
5070 ],
5071 },
5072 },
5073 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
5074 },
5075 },
5076 ],
5077 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
5078 { # Defines a threshold for categorizing time series values.
5079 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
5080 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
5081 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
5082 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
5083 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
5084 },
5085 ],
5086 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
5087 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
5088 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
5089 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
5090 },
5091 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
5092 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
5093 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
5094 },
5095 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
5096 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
5097 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
5098 },
5099 },
5100 },
5101 ],
5102 },
5103 ],
5104 },
5105 &quot;dashboardFilters&quot;: [ # Filters to reduce the amount of data charted based on the filter criteria.
5106 { # A filter to reduce the amount of data charted in relevant widgets.
5107 &quot;filterType&quot;: &quot;A String&quot;, # The specified filter type
5108 &quot;labelKey&quot;: &quot;A String&quot;, # Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.
5109 &quot;stringArray&quot;: { # An array of strings # A list of possible string values for the filter
5110 &quot;values&quot;: [ # The values of the array
5111 &quot;A String&quot;,
5112 ],
5113 },
5114 &quot;stringArrayValue&quot;: { # An array of strings # An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED
5115 &quot;values&quot;: [ # The values of the array
5116 &quot;A String&quot;,
5117 ],
5118 },
5119 &quot;stringValue&quot;: &quot;A String&quot;, # A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED
5120 &quot;templateVariable&quot;: &quot;A String&quot;, # The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.
5121 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported
5122 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
5123 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
5124 },
5125 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
5126 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
5127 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
5128 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5129 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5130 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5131 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5132 &quot;A String&quot;,
5133 ],
5134 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5135 },
5136 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5137 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5138 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5139 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5140 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5141 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5142 },
5143 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5144 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5145 },
5146 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
5147 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5148 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5149 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5150 &quot;A String&quot;,
5151 ],
5152 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5153 },
5154 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5155 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5156 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5157 },
5158 },
5159 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
5160 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
5161 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5162 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5163 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5164 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5165 &quot;A String&quot;,
5166 ],
5167 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5168 },
5169 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5170 },
5171 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
5172 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5173 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5174 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5175 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5176 &quot;A String&quot;,
5177 ],
5178 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5179 },
5180 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5181 },
5182 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5183 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5184 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5185 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5186 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5187 },
5188 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5189 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5190 },
5191 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
5192 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5193 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5194 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5195 &quot;A String&quot;,
5196 ],
5197 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5198 },
5199 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5200 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5201 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5202 },
5203 },
5204 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
5205 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
5206 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
5207 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
5208 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
5209 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
5210 &quot;A String&quot;,
5211 ],
5212 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
5213 &quot;A String&quot;,
5214 ],
5215 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
5216 &quot;A String&quot;,
5217 ],
5218 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
5219 { # Span attribute key and list of values to be used for filtering.
5220 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
5221 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
5222 &quot;A String&quot;,
5223 ],
5224 },
5225 ],
5226 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
5227 &quot;A String&quot;,
5228 ],
5229 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
5230 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
5231 &quot;A String&quot;,
5232 ],
5233 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
5234 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
5235 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
5236 &quot;A String&quot;,
5237 ],
5238 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
5239 &quot;A String&quot;,
5240 ],
5241 },
5242 },
5243 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
5244 },
5245 &quot;valueType&quot;: &quot;A String&quot;, # The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.
5246 },
5247 ],
5248 &quot;displayName&quot;: &quot;A String&quot;, # Required. The mutable, human-readable name.
5249 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. An etag is returned in the response to GetDashboard, and users are expected to put that etag in the request to UpdateDashboard to ensure that their change will be applied to the same version of the Dashboard configuration. The field should not be passed during dashboard creation.
5250 &quot;gridLayout&quot;: { # A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy. # Content is arranged with a basic layout that re-flows a simple list of informational elements like widgets or tiles.
5251 &quot;columns&quot;: &quot;A String&quot;, # The number of columns into which the view&#x27;s width is divided. If omitted or set to zero, a system default will be used while rendering.
5252 &quot;widgets&quot;: [ # The informational elements that are arranged into the columns row-first.
5253 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
5254 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
5255 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
5256 },
5257 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
5258 },
5259 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
5260 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
5261 },
5262 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
5263 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
5264 &quot;A String&quot;,
5265 ],
5266 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
5267 &quot;A String&quot;,
5268 ],
5269 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
5270 &quot;A String&quot;,
5271 ],
5272 },
5273 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
5274 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
5275 },
5276 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
5277 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
5278 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
5279 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
5280 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
5281 &quot;a_key&quot;: &quot;A String&quot;,
5282 },
5283 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
5284 },
5285 ],
5286 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
5287 &quot;A String&quot;,
5288 ],
5289 },
5290 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
5291 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
5292 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
5293 &quot;A String&quot;,
5294 ],
5295 },
5296 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
5297 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
5298 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
5299 { # Groups a time series query definition.
5300 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
5301 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
5302 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
5303 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
5304 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
5305 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
5306 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
5307 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
5308 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
5309 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
5310 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
5311 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
5312 },
5313 ],
5314 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
5315 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
5316 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
5317 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
5318 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
5319 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
5320 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
5321 },
5322 ],
5323 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
5324 },
5325 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
5326 },
5327 ],
5328 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
5329 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
5330 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
5331 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
5332 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
5333 },
5334 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
5335 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
5336 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
5337 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5338 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5339 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5340 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5341 &quot;A String&quot;,
5342 ],
5343 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5344 },
5345 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5346 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5347 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5348 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5349 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5350 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5351 },
5352 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5353 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5354 },
5355 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
5356 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5357 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5358 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5359 &quot;A String&quot;,
5360 ],
5361 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5362 },
5363 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5364 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5365 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5366 },
5367 },
5368 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
5369 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
5370 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5371 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5372 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5373 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5374 &quot;A String&quot;,
5375 ],
5376 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5377 },
5378 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5379 },
5380 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
5381 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5382 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5383 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5384 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5385 &quot;A String&quot;,
5386 ],
5387 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5388 },
5389 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5390 },
5391 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5392 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5393 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5394 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5395 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5396 },
5397 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5398 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5399 },
5400 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
5401 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5402 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5403 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5404 &quot;A String&quot;,
5405 ],
5406 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5407 },
5408 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5409 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5410 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5411 },
5412 },
5413 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
5414 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
5415 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
5416 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
5417 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
5418 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
5419 &quot;A String&quot;,
5420 ],
5421 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
5422 &quot;A String&quot;,
5423 ],
5424 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
5425 &quot;A String&quot;,
5426 ],
5427 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
5428 { # Span attribute key and list of values to be used for filtering.
5429 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
5430 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
5431 &quot;A String&quot;,
5432 ],
5433 },
5434 ],
5435 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
5436 &quot;A String&quot;,
5437 ],
5438 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
5439 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
5440 &quot;A String&quot;,
5441 ],
5442 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
5443 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
5444 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
5445 &quot;A String&quot;,
5446 ],
5447 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
5448 &quot;A String&quot;,
5449 ],
5450 },
5451 },
5452 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
5453 },
5454 },
5455 ],
5456 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
5457 },
5458 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
5459 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
5460 },
5461 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
5462 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
5463 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
5464 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
5465 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
5466 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
5467 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
5468 },
5469 ],
5470 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
5471 },
5472 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
5473 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
5474 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
5475 },
5476 ],
5477 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
5478 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
5479 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
5480 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
5481 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
5482 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
5483 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
5484 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
5485 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
5486 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
5487 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
5488 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
5489 },
5490 ],
5491 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
5492 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
5493 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
5494 },
5495 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
5496 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
5497 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
5498 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
5499 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
5500 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
5501 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
5502 },
5503 ],
5504 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
5505 },
5506 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
5507 },
5508 ],
5509 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
5510 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
5511 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
5512 },
5513 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
5514 { # Defines a threshold for categorizing time series values.
5515 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
5516 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
5517 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
5518 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
5519 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
5520 },
5521 ],
5522 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
5523 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
5524 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
5525 },
5526 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
5527 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
5528 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
5529 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5530 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5531 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5532 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5533 &quot;A String&quot;,
5534 ],
5535 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5536 },
5537 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5538 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5539 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5540 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5541 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5542 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5543 },
5544 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5545 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5546 },
5547 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
5548 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5549 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5550 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5551 &quot;A String&quot;,
5552 ],
5553 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5554 },
5555 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5556 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5557 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5558 },
5559 },
5560 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
5561 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
5562 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5563 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5564 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5565 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5566 &quot;A String&quot;,
5567 ],
5568 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5569 },
5570 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5571 },
5572 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
5573 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5574 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5575 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5576 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5577 &quot;A String&quot;,
5578 ],
5579 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5580 },
5581 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5582 },
5583 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5584 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5585 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5586 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5587 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5588 },
5589 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5590 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5591 },
5592 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
5593 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5594 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5595 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5596 &quot;A String&quot;,
5597 ],
5598 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5599 },
5600 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5601 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5602 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5603 },
5604 },
5605 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
5606 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
5607 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
5608 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
5609 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
5610 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
5611 &quot;A String&quot;,
5612 ],
5613 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
5614 &quot;A String&quot;,
5615 ],
5616 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
5617 &quot;A String&quot;,
5618 ],
5619 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
5620 { # Span attribute key and list of values to be used for filtering.
5621 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
5622 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
5623 &quot;A String&quot;,
5624 ],
5625 },
5626 ],
5627 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
5628 &quot;A String&quot;,
5629 ],
5630 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
5631 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
5632 &quot;A String&quot;,
5633 ],
5634 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
5635 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
5636 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
5637 &quot;A String&quot;,
5638 ],
5639 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
5640 &quot;A String&quot;,
5641 ],
5642 },
5643 },
5644 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
5645 },
5646 },
5647 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
5648 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
5649 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
5650 },
5651 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
5652 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
5653 },
5654 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
5655 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
5656 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
5657 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
5658 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
5659 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
5660 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
5661 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
5662 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
5663 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
5664 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
5665 },
5666 },
5667 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
5668 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
5669 { # The persistent settings for a table&#x27;s columns.
5670 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
5671 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
5672 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
5673 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
5674 { # Defines a threshold for categorizing time series values.
5675 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
5676 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
5677 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
5678 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
5679 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
5680 },
5681 ],
5682 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
5683 },
5684 ],
5685 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
5686 { # Groups a time series query definition with table options.
5687 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
5688 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
5689 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
5690 &quot;A String&quot;,
5691 ],
5692 },
5693 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
5694 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
5695 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
5696 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
5697 },
5698 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
5699 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
5700 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
5701 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5702 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5703 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5704 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5705 &quot;A String&quot;,
5706 ],
5707 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5708 },
5709 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5710 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5711 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5712 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5713 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5714 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5715 },
5716 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5717 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5718 },
5719 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
5720 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5721 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5722 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5723 &quot;A String&quot;,
5724 ],
5725 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5726 },
5727 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5728 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5729 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5730 },
5731 },
5732 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
5733 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
5734 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5735 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5736 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5737 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5738 &quot;A String&quot;,
5739 ],
5740 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5741 },
5742 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5743 },
5744 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
5745 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5746 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5747 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5748 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5749 &quot;A String&quot;,
5750 ],
5751 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5752 },
5753 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5754 },
5755 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5756 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5757 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5758 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5759 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5760 },
5761 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5762 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5763 },
5764 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
5765 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5766 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5767 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5768 &quot;A String&quot;,
5769 ],
5770 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5771 },
5772 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5773 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5774 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5775 },
5776 },
5777 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
5778 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
5779 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
5780 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
5781 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
5782 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
5783 &quot;A String&quot;,
5784 ],
5785 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
5786 &quot;A String&quot;,
5787 ],
5788 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
5789 &quot;A String&quot;,
5790 ],
5791 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
5792 { # Span attribute key and list of values to be used for filtering.
5793 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
5794 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
5795 &quot;A String&quot;,
5796 ],
5797 },
5798 ],
5799 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
5800 &quot;A String&quot;,
5801 ],
5802 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
5803 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
5804 &quot;A String&quot;,
5805 ],
5806 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
5807 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
5808 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
5809 &quot;A String&quot;,
5810 ],
5811 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
5812 &quot;A String&quot;,
5813 ],
5814 },
5815 },
5816 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
5817 },
5818 },
5819 ],
5820 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
5821 },
5822 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
5823 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
5824 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
5825 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
5826 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
5827 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
5828 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
5829 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
5830 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
5831 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
5832 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
5833 },
5834 ],
5835 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
5836 },
5837 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
5838 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
5839 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
5840 },
5841 ],
5842 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
5843 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
5844 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
5845 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
5846 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
5847 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
5848 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
5849 },
5850 ],
5851 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
5852 },
5853 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
5854 },
5855 ],
5856 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
5857 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
5858 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
5859 },
5860 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
5861 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
5862 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
5863 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5864 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5865 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5866 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5867 &quot;A String&quot;,
5868 ],
5869 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5870 },
5871 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5872 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5873 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5874 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5875 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5876 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5877 },
5878 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5879 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5880 },
5881 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
5882 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5883 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5884 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5885 &quot;A String&quot;,
5886 ],
5887 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5888 },
5889 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5890 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5891 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5892 },
5893 },
5894 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
5895 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
5896 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5897 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5898 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5899 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5900 &quot;A String&quot;,
5901 ],
5902 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5903 },
5904 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5905 },
5906 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
5907 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
5908 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5909 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5910 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5911 &quot;A String&quot;,
5912 ],
5913 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5914 },
5915 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
5916 },
5917 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
5918 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
5919 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
5920 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
5921 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
5922 },
5923 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
5924 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
5925 },
5926 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
5927 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
5928 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
5929 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
5930 &quot;A String&quot;,
5931 ],
5932 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
5933 },
5934 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
5935 &quot;numTimeSeries&quot;: 42, # How many time series to output.
5936 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
5937 },
5938 },
5939 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
5940 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
5941 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
5942 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
5943 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
5944 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
5945 &quot;A String&quot;,
5946 ],
5947 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
5948 &quot;A String&quot;,
5949 ],
5950 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
5951 &quot;A String&quot;,
5952 ],
5953 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
5954 { # Span attribute key and list of values to be used for filtering.
5955 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
5956 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
5957 &quot;A String&quot;,
5958 ],
5959 },
5960 ],
5961 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
5962 &quot;A String&quot;,
5963 ],
5964 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
5965 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
5966 &quot;A String&quot;,
5967 ],
5968 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
5969 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
5970 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
5971 &quot;A String&quot;,
5972 ],
5973 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
5974 &quot;A String&quot;,
5975 ],
5976 },
5977 },
5978 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
5979 },
5980 },
5981 ],
5982 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
5983 &quot;A String&quot;,
5984 ],
5985 },
5986 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
5987 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
5988 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
5989 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
5990 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
5991 },
5992 },
5993 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
5994 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
5995 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
5996 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
5997 },
5998 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
5999 { # Groups a time series query definition with charting options.
6000 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
6001 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
6002 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
6003 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6004 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6005 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6006 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6007 },
6008 ],
6009 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6010 },
6011 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
6012 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
6013 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
6014 },
6015 ],
6016 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
6017 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
6018 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
6019 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
6020 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
6021 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
6022 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
6023 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
6024 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
6025 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
6026 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
6027 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
6028 },
6029 ],
6030 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
6031 &quot;measures&quot;: [ # Optional. A collection of measures.
6032 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
6033 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
6034 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6035 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6036 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6037 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6038 },
6039 ],
6040 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6041 },
6042 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
6043 },
6044 ],
6045 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
6046 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
6047 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
6048 { # Data structure to storing column&#x27;s sort strategy
6049 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
6050 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
6051 },
6052 ],
6053 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
6054 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
6055 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
6056 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
6057 },
6058 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
6059 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
6060 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
6061 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6062 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6063 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6064 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6065 &quot;A String&quot;,
6066 ],
6067 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6068 },
6069 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6070 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6071 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6072 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6073 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6074 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6075 },
6076 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6077 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6078 },
6079 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
6080 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6081 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6082 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6083 &quot;A String&quot;,
6084 ],
6085 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6086 },
6087 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6088 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6089 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6090 },
6091 },
6092 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
6093 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
6094 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6095 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6096 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6097 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6098 &quot;A String&quot;,
6099 ],
6100 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6101 },
6102 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6103 },
6104 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
6105 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6106 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6107 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6108 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6109 &quot;A String&quot;,
6110 ],
6111 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6112 },
6113 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6114 },
6115 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6116 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6117 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6118 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6119 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6120 },
6121 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6122 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6123 },
6124 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
6125 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6126 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6127 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6128 &quot;A String&quot;,
6129 ],
6130 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6131 },
6132 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6133 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6134 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6135 },
6136 },
6137 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
6138 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
6139 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
6140 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
6141 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
6142 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
6143 &quot;A String&quot;,
6144 ],
6145 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
6146 &quot;A String&quot;,
6147 ],
6148 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
6149 &quot;A String&quot;,
6150 ],
6151 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
6152 { # Span attribute key and list of values to be used for filtering.
6153 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
6154 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
6155 &quot;A String&quot;,
6156 ],
6157 },
6158 ],
6159 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
6160 &quot;A String&quot;,
6161 ],
6162 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
6163 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
6164 &quot;A String&quot;,
6165 ],
6166 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
6167 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
6168 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
6169 &quot;A String&quot;,
6170 ],
6171 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
6172 &quot;A String&quot;,
6173 ],
6174 },
6175 },
6176 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
6177 },
6178 },
6179 ],
6180 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
6181 { # Defines a threshold for categorizing time series values.
6182 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
6183 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
6184 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
6185 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
6186 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
6187 },
6188 ],
6189 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
6190 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
6191 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
6192 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
6193 },
6194 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
6195 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
6196 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
6197 },
6198 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
6199 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
6200 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
6201 },
6202 },
6203 },
6204 ],
6205 },
6206 &quot;labels&quot;: { # Labels applied to the dashboard
6207 &quot;a_key&quot;: &quot;A String&quot;,
6208 },
6209 &quot;mosaicLayout&quot;: { # A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid. # The content is arranged as a grid of tiles, with each content widget occupying one or more grid blocks.
6210 &quot;columns&quot;: 42, # The number of columns in the mosaic grid. The number of columns must be between 1 and 48, inclusive.
6211 &quot;tiles&quot;: [ # The tiles to display.
6212 { # A single tile in the mosaic. The placement and size of the tile are configurable.
6213 &quot;height&quot;: 42, # The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
6214 &quot;widget&quot;: { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard. # The informational widget contained in the tile. For example an XyChart.
6215 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
6216 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
6217 },
6218 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
6219 },
6220 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
6221 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
6222 },
6223 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
6224 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
6225 &quot;A String&quot;,
6226 ],
6227 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
6228 &quot;A String&quot;,
6229 ],
6230 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
6231 &quot;A String&quot;,
6232 ],
6233 },
6234 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
6235 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
6236 },
6237 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
6238 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
6239 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
6240 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
6241 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
6242 &quot;a_key&quot;: &quot;A String&quot;,
6243 },
6244 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
6245 },
6246 ],
6247 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
6248 &quot;A String&quot;,
6249 ],
6250 },
6251 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
6252 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
6253 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
6254 &quot;A String&quot;,
6255 ],
6256 },
6257 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
6258 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
6259 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
6260 { # Groups a time series query definition.
6261 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
6262 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
6263 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
6264 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
6265 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
6266 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
6267 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
6268 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
6269 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
6270 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
6271 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
6272 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
6273 },
6274 ],
6275 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
6276 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
6277 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
6278 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6279 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6280 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6281 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6282 },
6283 ],
6284 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6285 },
6286 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
6287 },
6288 ],
6289 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
6290 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
6291 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
6292 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
6293 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
6294 },
6295 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
6296 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
6297 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
6298 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6299 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6300 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6301 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6302 &quot;A String&quot;,
6303 ],
6304 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6305 },
6306 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6307 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6308 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6309 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6310 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6311 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6312 },
6313 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6314 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6315 },
6316 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
6317 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6318 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6319 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6320 &quot;A String&quot;,
6321 ],
6322 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6323 },
6324 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6325 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6326 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6327 },
6328 },
6329 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
6330 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
6331 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6332 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6333 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6334 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6335 &quot;A String&quot;,
6336 ],
6337 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6338 },
6339 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6340 },
6341 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
6342 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6343 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6344 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6345 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6346 &quot;A String&quot;,
6347 ],
6348 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6349 },
6350 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6351 },
6352 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6353 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6354 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6355 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6356 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6357 },
6358 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6359 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6360 },
6361 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
6362 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6363 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6364 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6365 &quot;A String&quot;,
6366 ],
6367 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6368 },
6369 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6370 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6371 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6372 },
6373 },
6374 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
6375 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
6376 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
6377 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
6378 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
6379 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
6380 &quot;A String&quot;,
6381 ],
6382 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
6383 &quot;A String&quot;,
6384 ],
6385 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
6386 &quot;A String&quot;,
6387 ],
6388 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
6389 { # Span attribute key and list of values to be used for filtering.
6390 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
6391 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
6392 &quot;A String&quot;,
6393 ],
6394 },
6395 ],
6396 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
6397 &quot;A String&quot;,
6398 ],
6399 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
6400 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
6401 &quot;A String&quot;,
6402 ],
6403 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
6404 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
6405 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
6406 &quot;A String&quot;,
6407 ],
6408 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
6409 &quot;A String&quot;,
6410 ],
6411 },
6412 },
6413 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
6414 },
6415 },
6416 ],
6417 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
6418 },
6419 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
6420 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
6421 },
6422 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
6423 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
6424 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
6425 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6426 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6427 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6428 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6429 },
6430 ],
6431 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6432 },
6433 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
6434 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
6435 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
6436 },
6437 ],
6438 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
6439 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
6440 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
6441 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
6442 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
6443 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
6444 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
6445 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
6446 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
6447 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
6448 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
6449 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
6450 },
6451 ],
6452 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
6453 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
6454 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
6455 },
6456 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
6457 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
6458 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
6459 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6460 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6461 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6462 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6463 },
6464 ],
6465 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6466 },
6467 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
6468 },
6469 ],
6470 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
6471 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
6472 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
6473 },
6474 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
6475 { # Defines a threshold for categorizing time series values.
6476 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
6477 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
6478 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
6479 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
6480 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
6481 },
6482 ],
6483 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
6484 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
6485 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
6486 },
6487 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
6488 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
6489 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
6490 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6491 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6492 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6493 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6494 &quot;A String&quot;,
6495 ],
6496 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6497 },
6498 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6499 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6500 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6501 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6502 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6503 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6504 },
6505 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6506 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6507 },
6508 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
6509 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6510 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6511 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6512 &quot;A String&quot;,
6513 ],
6514 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6515 },
6516 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6517 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6518 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6519 },
6520 },
6521 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
6522 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
6523 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6524 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6525 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6526 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6527 &quot;A String&quot;,
6528 ],
6529 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6530 },
6531 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6532 },
6533 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
6534 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6535 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6536 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6537 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6538 &quot;A String&quot;,
6539 ],
6540 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6541 },
6542 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6543 },
6544 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6545 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6546 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6547 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6548 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6549 },
6550 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6551 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6552 },
6553 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
6554 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6555 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6556 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6557 &quot;A String&quot;,
6558 ],
6559 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6560 },
6561 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6562 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6563 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6564 },
6565 },
6566 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
6567 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
6568 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
6569 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
6570 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
6571 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
6572 &quot;A String&quot;,
6573 ],
6574 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
6575 &quot;A String&quot;,
6576 ],
6577 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
6578 &quot;A String&quot;,
6579 ],
6580 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
6581 { # Span attribute key and list of values to be used for filtering.
6582 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
6583 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
6584 &quot;A String&quot;,
6585 ],
6586 },
6587 ],
6588 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
6589 &quot;A String&quot;,
6590 ],
6591 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
6592 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
6593 &quot;A String&quot;,
6594 ],
6595 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
6596 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
6597 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
6598 &quot;A String&quot;,
6599 ],
6600 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
6601 &quot;A String&quot;,
6602 ],
6603 },
6604 },
6605 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
6606 },
6607 },
6608 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
6609 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
6610 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
6611 },
6612 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
6613 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
6614 },
6615 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
6616 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
6617 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
6618 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
6619 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
6620 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
6621 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
6622 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
6623 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
6624 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
6625 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
6626 },
6627 },
6628 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
6629 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
6630 { # The persistent settings for a table&#x27;s columns.
6631 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
6632 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
6633 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
6634 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
6635 { # Defines a threshold for categorizing time series values.
6636 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
6637 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
6638 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
6639 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
6640 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
6641 },
6642 ],
6643 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
6644 },
6645 ],
6646 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
6647 { # Groups a time series query definition with table options.
6648 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
6649 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
6650 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
6651 &quot;A String&quot;,
6652 ],
6653 },
6654 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
6655 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
6656 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
6657 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
6658 },
6659 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
6660 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
6661 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
6662 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6663 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6664 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6665 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6666 &quot;A String&quot;,
6667 ],
6668 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6669 },
6670 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6671 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6672 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6673 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6674 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6675 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6676 },
6677 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6678 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6679 },
6680 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
6681 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6682 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6683 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6684 &quot;A String&quot;,
6685 ],
6686 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6687 },
6688 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6689 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6690 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6691 },
6692 },
6693 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
6694 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
6695 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6696 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6697 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6698 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6699 &quot;A String&quot;,
6700 ],
6701 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6702 },
6703 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6704 },
6705 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
6706 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6707 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6708 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6709 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6710 &quot;A String&quot;,
6711 ],
6712 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6713 },
6714 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6715 },
6716 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6717 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6718 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6719 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6720 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6721 },
6722 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6723 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6724 },
6725 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
6726 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6727 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6728 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6729 &quot;A String&quot;,
6730 ],
6731 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6732 },
6733 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6734 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6735 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6736 },
6737 },
6738 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
6739 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
6740 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
6741 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
6742 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
6743 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
6744 &quot;A String&quot;,
6745 ],
6746 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
6747 &quot;A String&quot;,
6748 ],
6749 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
6750 &quot;A String&quot;,
6751 ],
6752 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
6753 { # Span attribute key and list of values to be used for filtering.
6754 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
6755 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
6756 &quot;A String&quot;,
6757 ],
6758 },
6759 ],
6760 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
6761 &quot;A String&quot;,
6762 ],
6763 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
6764 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
6765 &quot;A String&quot;,
6766 ],
6767 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
6768 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
6769 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
6770 &quot;A String&quot;,
6771 ],
6772 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
6773 &quot;A String&quot;,
6774 ],
6775 },
6776 },
6777 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
6778 },
6779 },
6780 ],
6781 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
6782 },
6783 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
6784 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
6785 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
6786 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
6787 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
6788 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
6789 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
6790 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6791 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6792 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6793 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6794 },
6795 ],
6796 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6797 },
6798 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
6799 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
6800 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
6801 },
6802 ],
6803 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
6804 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
6805 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
6806 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6807 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6808 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6809 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6810 },
6811 ],
6812 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6813 },
6814 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
6815 },
6816 ],
6817 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
6818 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
6819 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
6820 },
6821 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
6822 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
6823 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
6824 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6825 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6826 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6827 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6828 &quot;A String&quot;,
6829 ],
6830 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6831 },
6832 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6833 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6834 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6835 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6836 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6837 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6838 },
6839 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6840 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6841 },
6842 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
6843 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6844 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6845 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6846 &quot;A String&quot;,
6847 ],
6848 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6849 },
6850 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6851 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6852 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6853 },
6854 },
6855 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
6856 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
6857 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6858 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6859 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6860 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6861 &quot;A String&quot;,
6862 ],
6863 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6864 },
6865 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6866 },
6867 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
6868 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
6869 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6870 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6871 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6872 &quot;A String&quot;,
6873 ],
6874 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6875 },
6876 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
6877 },
6878 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
6879 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
6880 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
6881 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
6882 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
6883 },
6884 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
6885 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
6886 },
6887 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
6888 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
6889 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
6890 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
6891 &quot;A String&quot;,
6892 ],
6893 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
6894 },
6895 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
6896 &quot;numTimeSeries&quot;: 42, # How many time series to output.
6897 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
6898 },
6899 },
6900 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
6901 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
6902 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
6903 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
6904 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
6905 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
6906 &quot;A String&quot;,
6907 ],
6908 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
6909 &quot;A String&quot;,
6910 ],
6911 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
6912 &quot;A String&quot;,
6913 ],
6914 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
6915 { # Span attribute key and list of values to be used for filtering.
6916 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
6917 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
6918 &quot;A String&quot;,
6919 ],
6920 },
6921 ],
6922 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
6923 &quot;A String&quot;,
6924 ],
6925 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
6926 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
6927 &quot;A String&quot;,
6928 ],
6929 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
6930 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
6931 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
6932 &quot;A String&quot;,
6933 ],
6934 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
6935 &quot;A String&quot;,
6936 ],
6937 },
6938 },
6939 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
6940 },
6941 },
6942 ],
6943 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
6944 &quot;A String&quot;,
6945 ],
6946 },
6947 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
6948 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
6949 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
6950 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
6951 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
6952 },
6953 },
6954 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
6955 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
6956 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
6957 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
6958 },
6959 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
6960 { # Groups a time series query definition with charting options.
6961 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
6962 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
6963 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
6964 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6965 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6966 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6967 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6968 },
6969 ],
6970 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
6971 },
6972 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
6973 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
6974 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
6975 },
6976 ],
6977 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
6978 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
6979 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
6980 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
6981 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
6982 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
6983 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
6984 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
6985 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
6986 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
6987 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
6988 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
6989 },
6990 ],
6991 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
6992 &quot;measures&quot;: [ # Optional. A collection of measures.
6993 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
6994 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
6995 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
6996 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
6997 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
6998 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
6999 },
7000 ],
7001 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7002 },
7003 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
7004 },
7005 ],
7006 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
7007 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
7008 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
7009 { # Data structure to storing column&#x27;s sort strategy
7010 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
7011 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
7012 },
7013 ],
7014 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
7015 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
7016 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
7017 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
7018 },
7019 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
7020 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
7021 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
7022 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7023 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7024 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7025 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7026 &quot;A String&quot;,
7027 ],
7028 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7029 },
7030 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7031 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7032 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7033 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7034 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7035 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7036 },
7037 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7038 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7039 },
7040 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
7041 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7042 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7043 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7044 &quot;A String&quot;,
7045 ],
7046 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7047 },
7048 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7049 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7050 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7051 },
7052 },
7053 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
7054 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
7055 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7056 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7057 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7058 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7059 &quot;A String&quot;,
7060 ],
7061 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7062 },
7063 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7064 },
7065 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
7066 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7067 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7068 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7069 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7070 &quot;A String&quot;,
7071 ],
7072 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7073 },
7074 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7075 },
7076 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7077 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7078 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7079 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7080 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7081 },
7082 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7083 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7084 },
7085 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
7086 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7087 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7088 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7089 &quot;A String&quot;,
7090 ],
7091 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7092 },
7093 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7094 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7095 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7096 },
7097 },
7098 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
7099 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
7100 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
7101 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
7102 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
7103 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
7104 &quot;A String&quot;,
7105 ],
7106 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
7107 &quot;A String&quot;,
7108 ],
7109 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
7110 &quot;A String&quot;,
7111 ],
7112 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
7113 { # Span attribute key and list of values to be used for filtering.
7114 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
7115 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
7116 &quot;A String&quot;,
7117 ],
7118 },
7119 ],
7120 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
7121 &quot;A String&quot;,
7122 ],
7123 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
7124 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
7125 &quot;A String&quot;,
7126 ],
7127 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
7128 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
7129 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
7130 &quot;A String&quot;,
7131 ],
7132 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
7133 &quot;A String&quot;,
7134 ],
7135 },
7136 },
7137 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
7138 },
7139 },
7140 ],
7141 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
7142 { # Defines a threshold for categorizing time series values.
7143 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
7144 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
7145 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
7146 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
7147 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
7148 },
7149 ],
7150 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
7151 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
7152 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
7153 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
7154 },
7155 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
7156 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
7157 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
7158 },
7159 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
7160 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
7161 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
7162 },
7163 },
7164 },
7165 &quot;width&quot;: 42, # The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
7166 &quot;xPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
7167 &quot;yPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
7168 },
7169 ],
7170 },
7171 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dashboard.
7172 &quot;rowLayout&quot;: { # A simplified layout that divides the available space into rows and arranges a set of widgets horizontally in each row. # The content is divided into equally spaced rows and the widgets are arranged horizontally.
7173 &quot;rows&quot;: [ # The rows of content to display.
7174 { # Defines the layout properties and content for a row.
7175 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.
7176 &quot;widgets&quot;: [ # The display widgets arranged horizontally in this row.
7177 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
7178 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
7179 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
7180 },
7181 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
7182 },
7183 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
7184 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
7185 },
7186 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
7187 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
7188 &quot;A String&quot;,
7189 ],
7190 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
7191 &quot;A String&quot;,
7192 ],
7193 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
7194 &quot;A String&quot;,
7195 ],
7196 },
7197 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
7198 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
7199 },
7200 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
7201 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
7202 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
7203 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
7204 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
7205 &quot;a_key&quot;: &quot;A String&quot;,
7206 },
7207 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
7208 },
7209 ],
7210 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
7211 &quot;A String&quot;,
7212 ],
7213 },
7214 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
7215 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
7216 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
7217 &quot;A String&quot;,
7218 ],
7219 },
7220 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
7221 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
7222 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
7223 { # Groups a time series query definition.
7224 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
7225 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
7226 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
7227 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
7228 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
7229 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
7230 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
7231 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
7232 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
7233 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
7234 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
7235 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
7236 },
7237 ],
7238 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
7239 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
7240 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
7241 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7242 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7243 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7244 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7245 },
7246 ],
7247 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7248 },
7249 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
7250 },
7251 ],
7252 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
7253 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
7254 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
7255 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
7256 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
7257 },
7258 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
7259 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
7260 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
7261 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7262 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7263 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7264 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7265 &quot;A String&quot;,
7266 ],
7267 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7268 },
7269 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7270 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7271 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7272 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7273 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7274 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7275 },
7276 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7277 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7278 },
7279 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
7280 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7281 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7282 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7283 &quot;A String&quot;,
7284 ],
7285 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7286 },
7287 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7288 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7289 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7290 },
7291 },
7292 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
7293 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
7294 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7295 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7296 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7297 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7298 &quot;A String&quot;,
7299 ],
7300 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7301 },
7302 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7303 },
7304 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
7305 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7306 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7307 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7308 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7309 &quot;A String&quot;,
7310 ],
7311 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7312 },
7313 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7314 },
7315 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7316 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7317 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7318 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7319 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7320 },
7321 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7322 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7323 },
7324 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
7325 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7326 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7327 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7328 &quot;A String&quot;,
7329 ],
7330 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7331 },
7332 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7333 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7334 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7335 },
7336 },
7337 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
7338 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
7339 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
7340 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
7341 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
7342 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
7343 &quot;A String&quot;,
7344 ],
7345 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
7346 &quot;A String&quot;,
7347 ],
7348 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
7349 &quot;A String&quot;,
7350 ],
7351 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
7352 { # Span attribute key and list of values to be used for filtering.
7353 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
7354 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
7355 &quot;A String&quot;,
7356 ],
7357 },
7358 ],
7359 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
7360 &quot;A String&quot;,
7361 ],
7362 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
7363 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
7364 &quot;A String&quot;,
7365 ],
7366 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
7367 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
7368 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
7369 &quot;A String&quot;,
7370 ],
7371 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
7372 &quot;A String&quot;,
7373 ],
7374 },
7375 },
7376 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
7377 },
7378 },
7379 ],
7380 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
7381 },
7382 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
7383 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
7384 },
7385 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
7386 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
7387 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
7388 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7389 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7390 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7391 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7392 },
7393 ],
7394 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7395 },
7396 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
7397 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
7398 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
7399 },
7400 ],
7401 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
7402 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
7403 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
7404 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
7405 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
7406 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
7407 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
7408 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
7409 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
7410 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
7411 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
7412 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
7413 },
7414 ],
7415 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
7416 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
7417 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
7418 },
7419 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
7420 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
7421 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
7422 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7423 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7424 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7425 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7426 },
7427 ],
7428 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7429 },
7430 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
7431 },
7432 ],
7433 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
7434 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
7435 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
7436 },
7437 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
7438 { # Defines a threshold for categorizing time series values.
7439 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
7440 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
7441 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
7442 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
7443 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
7444 },
7445 ],
7446 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
7447 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
7448 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
7449 },
7450 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
7451 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
7452 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
7453 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7454 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7455 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7456 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7457 &quot;A String&quot;,
7458 ],
7459 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7460 },
7461 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7462 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7463 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7464 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7465 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7466 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7467 },
7468 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7469 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7470 },
7471 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
7472 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7473 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7474 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7475 &quot;A String&quot;,
7476 ],
7477 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7478 },
7479 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7480 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7481 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7482 },
7483 },
7484 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
7485 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
7486 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7487 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7488 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7489 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7490 &quot;A String&quot;,
7491 ],
7492 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7493 },
7494 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7495 },
7496 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
7497 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7498 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7499 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7500 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7501 &quot;A String&quot;,
7502 ],
7503 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7504 },
7505 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7506 },
7507 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7508 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7509 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7510 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7511 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7512 },
7513 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7514 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7515 },
7516 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
7517 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7518 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7519 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7520 &quot;A String&quot;,
7521 ],
7522 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7523 },
7524 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7525 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7526 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7527 },
7528 },
7529 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
7530 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
7531 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
7532 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
7533 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
7534 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
7535 &quot;A String&quot;,
7536 ],
7537 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
7538 &quot;A String&quot;,
7539 ],
7540 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
7541 &quot;A String&quot;,
7542 ],
7543 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
7544 { # Span attribute key and list of values to be used for filtering.
7545 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
7546 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
7547 &quot;A String&quot;,
7548 ],
7549 },
7550 ],
7551 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
7552 &quot;A String&quot;,
7553 ],
7554 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
7555 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
7556 &quot;A String&quot;,
7557 ],
7558 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
7559 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
7560 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
7561 &quot;A String&quot;,
7562 ],
7563 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
7564 &quot;A String&quot;,
7565 ],
7566 },
7567 },
7568 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
7569 },
7570 },
7571 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
7572 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
7573 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
7574 },
7575 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
7576 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
7577 },
7578 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
7579 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
7580 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
7581 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
7582 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
7583 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
7584 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
7585 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
7586 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
7587 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
7588 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
7589 },
7590 },
7591 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
7592 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
7593 { # The persistent settings for a table&#x27;s columns.
7594 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
7595 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
7596 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
7597 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
7598 { # Defines a threshold for categorizing time series values.
7599 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
7600 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
7601 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
7602 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
7603 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
7604 },
7605 ],
7606 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
7607 },
7608 ],
7609 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
7610 { # Groups a time series query definition with table options.
7611 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
7612 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
7613 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
7614 &quot;A String&quot;,
7615 ],
7616 },
7617 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
7618 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
7619 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
7620 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
7621 },
7622 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
7623 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
7624 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
7625 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7626 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7627 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7628 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7629 &quot;A String&quot;,
7630 ],
7631 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7632 },
7633 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7634 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7635 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7636 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7637 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7638 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7639 },
7640 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7641 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7642 },
7643 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
7644 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7645 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7646 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7647 &quot;A String&quot;,
7648 ],
7649 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7650 },
7651 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7652 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7653 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7654 },
7655 },
7656 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
7657 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
7658 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7659 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7660 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7661 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7662 &quot;A String&quot;,
7663 ],
7664 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7665 },
7666 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7667 },
7668 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
7669 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7670 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7671 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7672 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7673 &quot;A String&quot;,
7674 ],
7675 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7676 },
7677 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7678 },
7679 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7680 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7681 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7682 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7683 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7684 },
7685 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7686 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7687 },
7688 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
7689 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7690 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7691 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7692 &quot;A String&quot;,
7693 ],
7694 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7695 },
7696 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7697 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7698 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7699 },
7700 },
7701 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
7702 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
7703 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
7704 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
7705 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
7706 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
7707 &quot;A String&quot;,
7708 ],
7709 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
7710 &quot;A String&quot;,
7711 ],
7712 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
7713 &quot;A String&quot;,
7714 ],
7715 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
7716 { # Span attribute key and list of values to be used for filtering.
7717 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
7718 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
7719 &quot;A String&quot;,
7720 ],
7721 },
7722 ],
7723 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
7724 &quot;A String&quot;,
7725 ],
7726 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
7727 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
7728 &quot;A String&quot;,
7729 ],
7730 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
7731 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
7732 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
7733 &quot;A String&quot;,
7734 ],
7735 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
7736 &quot;A String&quot;,
7737 ],
7738 },
7739 },
7740 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
7741 },
7742 },
7743 ],
7744 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
7745 },
7746 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
7747 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
7748 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
7749 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
7750 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
7751 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
7752 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
7753 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7754 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7755 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7756 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7757 },
7758 ],
7759 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7760 },
7761 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
7762 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
7763 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
7764 },
7765 ],
7766 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
7767 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
7768 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
7769 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7770 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7771 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7772 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7773 },
7774 ],
7775 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7776 },
7777 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
7778 },
7779 ],
7780 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
7781 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
7782 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
7783 },
7784 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
7785 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
7786 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
7787 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7788 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7789 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7790 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7791 &quot;A String&quot;,
7792 ],
7793 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7794 },
7795 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7796 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7797 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7798 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7799 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7800 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7801 },
7802 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7803 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7804 },
7805 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
7806 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7807 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7808 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7809 &quot;A String&quot;,
7810 ],
7811 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7812 },
7813 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7814 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7815 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7816 },
7817 },
7818 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
7819 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
7820 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7821 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7822 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7823 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7824 &quot;A String&quot;,
7825 ],
7826 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7827 },
7828 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7829 },
7830 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
7831 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7832 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7833 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7834 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7835 &quot;A String&quot;,
7836 ],
7837 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7838 },
7839 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7840 },
7841 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7842 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7843 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7844 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7845 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7846 },
7847 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
7848 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
7849 },
7850 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
7851 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7852 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7853 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7854 &quot;A String&quot;,
7855 ],
7856 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7857 },
7858 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
7859 &quot;numTimeSeries&quot;: 42, # How many time series to output.
7860 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
7861 },
7862 },
7863 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
7864 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
7865 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
7866 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
7867 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
7868 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
7869 &quot;A String&quot;,
7870 ],
7871 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
7872 &quot;A String&quot;,
7873 ],
7874 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
7875 &quot;A String&quot;,
7876 ],
7877 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
7878 { # Span attribute key and list of values to be used for filtering.
7879 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
7880 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
7881 &quot;A String&quot;,
7882 ],
7883 },
7884 ],
7885 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
7886 &quot;A String&quot;,
7887 ],
7888 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
7889 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
7890 &quot;A String&quot;,
7891 ],
7892 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
7893 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
7894 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
7895 &quot;A String&quot;,
7896 ],
7897 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
7898 &quot;A String&quot;,
7899 ],
7900 },
7901 },
7902 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
7903 },
7904 },
7905 ],
7906 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
7907 &quot;A String&quot;,
7908 ],
7909 },
7910 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
7911 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
7912 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
7913 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
7914 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
7915 },
7916 },
7917 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
7918 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
7919 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
7920 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
7921 },
7922 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
7923 { # Groups a time series query definition with charting options.
7924 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
7925 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
7926 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
7927 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7928 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7929 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7930 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7931 },
7932 ],
7933 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7934 },
7935 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
7936 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
7937 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
7938 },
7939 ],
7940 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
7941 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
7942 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
7943 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
7944 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
7945 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
7946 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
7947 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
7948 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
7949 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
7950 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
7951 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
7952 },
7953 ],
7954 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
7955 &quot;measures&quot;: [ # Optional. A collection of measures.
7956 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
7957 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
7958 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
7959 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
7960 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
7961 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
7962 },
7963 ],
7964 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
7965 },
7966 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
7967 },
7968 ],
7969 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
7970 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
7971 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
7972 { # Data structure to storing column&#x27;s sort strategy
7973 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
7974 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
7975 },
7976 ],
7977 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
7978 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
7979 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
7980 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
7981 },
7982 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
7983 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
7984 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
7985 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
7986 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
7987 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
7988 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
7989 &quot;A String&quot;,
7990 ],
7991 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
7992 },
7993 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
7994 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
7995 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
7996 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
7997 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
7998 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
7999 },
8000 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8001 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8002 },
8003 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
8004 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8005 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8006 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8007 &quot;A String&quot;,
8008 ],
8009 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8010 },
8011 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8012 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8013 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8014 },
8015 },
8016 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
8017 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
8018 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8019 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8020 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8021 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8022 &quot;A String&quot;,
8023 ],
8024 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8025 },
8026 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8027 },
8028 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
8029 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8030 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8031 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8032 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8033 &quot;A String&quot;,
8034 ],
8035 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8036 },
8037 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8038 },
8039 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8040 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8041 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8042 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8043 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8044 },
8045 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8046 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8047 },
8048 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
8049 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8050 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8051 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8052 &quot;A String&quot;,
8053 ],
8054 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8055 },
8056 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8057 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8058 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8059 },
8060 },
8061 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
8062 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
8063 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
8064 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
8065 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
8066 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
8067 &quot;A String&quot;,
8068 ],
8069 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
8070 &quot;A String&quot;,
8071 ],
8072 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
8073 &quot;A String&quot;,
8074 ],
8075 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
8076 { # Span attribute key and list of values to be used for filtering.
8077 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
8078 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
8079 &quot;A String&quot;,
8080 ],
8081 },
8082 ],
8083 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
8084 &quot;A String&quot;,
8085 ],
8086 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
8087 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
8088 &quot;A String&quot;,
8089 ],
8090 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
8091 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
8092 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
8093 &quot;A String&quot;,
8094 ],
8095 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
8096 &quot;A String&quot;,
8097 ],
8098 },
8099 },
8100 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
8101 },
8102 },
8103 ],
8104 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
8105 { # Defines a threshold for categorizing time series values.
8106 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
8107 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
8108 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
8109 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
8110 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
8111 },
8112 ],
8113 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
8114 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
8115 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
8116 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
8117 },
8118 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
8119 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
8120 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
8121 },
8122 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
8123 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
8124 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
8125 },
8126 },
8127 },
8128 ],
8129 },
8130 ],
8131 },
8132 }</pre>
8133 </div>
8134
8135 <div class="method">
8136 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
8137 <pre>Deletes an existing custom dashboard.This method requires the monitoring.dashboards.delete permission on the specified dashboard. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).
8138
8139 Args:
8140 name: string, Required. The resource name of the Dashboard. The format is: projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] (required)
8141 x__xgafv: string, V1 error format.
8142 Allowed values
8143 1 - v1 error format
8144 2 - v2 error format
8145
8146 Returns:
8147 An object of the form:
8148
8149 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
8150 }</pre>
8151 </div>
8152
8153 <div class="method">
8154 <code class="details" id="get">get(name, x__xgafv=None)</code>
8155 <pre>Fetches a specific dashboard.This method requires the monitoring.dashboards.get permission on the specified dashboard. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).
8156
8157 Args:
8158 name: string, Required. The resource name of the Dashboard. The format is one of: dashboards/[DASHBOARD_ID] (for system dashboards) projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] (for custom dashboards). (required)
8159 x__xgafv: string, V1 error format.
8160 Allowed values
8161 1 - v1 error format
8162 2 - v2 error format
8163
8164 Returns:
8165 An object of the form:
8166
8167 { # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
8168 &quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
8169 &quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
8170 &quot;A String&quot;,
8171 ],
8172 &quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
8173 { # Annotation configuration for one event type on a dashboard
8174 &quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
8175 &quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
8176 &quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
8177 &quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
8178 &quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
8179 &quot;A String&quot;,
8180 ],
8181 },
8182 ],
8183 },
8184 &quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
8185 &quot;columns&quot;: [ # The columns of content to display.
8186 { # Defines the layout properties and content for a column.
8187 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this column. The column weight is used to adjust the width of columns on the screen (relative to peers). Greater the weight, greater the width of the column on the screen. If omitted, a value of 1 is used while rendering.
8188 &quot;widgets&quot;: [ # The display widgets arranged vertically in this column.
8189 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
8190 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
8191 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
8192 },
8193 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
8194 },
8195 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
8196 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
8197 },
8198 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
8199 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
8200 &quot;A String&quot;,
8201 ],
8202 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
8203 &quot;A String&quot;,
8204 ],
8205 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
8206 &quot;A String&quot;,
8207 ],
8208 },
8209 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
8210 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
8211 },
8212 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
8213 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
8214 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
8215 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
8216 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
8217 &quot;a_key&quot;: &quot;A String&quot;,
8218 },
8219 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
8220 },
8221 ],
8222 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
8223 &quot;A String&quot;,
8224 ],
8225 },
8226 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
8227 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
8228 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
8229 &quot;A String&quot;,
8230 ],
8231 },
8232 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
8233 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
8234 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
8235 { # Groups a time series query definition.
8236 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
8237 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
8238 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
8239 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
8240 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
8241 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
8242 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
8243 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
8244 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
8245 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
8246 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
8247 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
8248 },
8249 ],
8250 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
8251 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
8252 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
8253 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8254 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8255 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8256 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8257 },
8258 ],
8259 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8260 },
8261 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
8262 },
8263 ],
8264 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
8265 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
8266 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
8267 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
8268 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
8269 },
8270 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
8271 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
8272 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
8273 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8274 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8275 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8276 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8277 &quot;A String&quot;,
8278 ],
8279 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8280 },
8281 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8282 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8283 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8284 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8285 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8286 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8287 },
8288 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8289 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8290 },
8291 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
8292 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8293 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8294 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8295 &quot;A String&quot;,
8296 ],
8297 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8298 },
8299 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8300 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8301 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8302 },
8303 },
8304 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
8305 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
8306 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8307 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8308 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8309 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8310 &quot;A String&quot;,
8311 ],
8312 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8313 },
8314 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8315 },
8316 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
8317 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8318 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8319 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8320 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8321 &quot;A String&quot;,
8322 ],
8323 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8324 },
8325 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8326 },
8327 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8328 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8329 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8330 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8331 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8332 },
8333 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8334 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8335 },
8336 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
8337 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8338 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8339 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8340 &quot;A String&quot;,
8341 ],
8342 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8343 },
8344 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8345 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8346 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8347 },
8348 },
8349 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
8350 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
8351 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
8352 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
8353 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
8354 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
8355 &quot;A String&quot;,
8356 ],
8357 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
8358 &quot;A String&quot;,
8359 ],
8360 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
8361 &quot;A String&quot;,
8362 ],
8363 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
8364 { # Span attribute key and list of values to be used for filtering.
8365 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
8366 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
8367 &quot;A String&quot;,
8368 ],
8369 },
8370 ],
8371 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
8372 &quot;A String&quot;,
8373 ],
8374 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
8375 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
8376 &quot;A String&quot;,
8377 ],
8378 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
8379 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
8380 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
8381 &quot;A String&quot;,
8382 ],
8383 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
8384 &quot;A String&quot;,
8385 ],
8386 },
8387 },
8388 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
8389 },
8390 },
8391 ],
8392 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
8393 },
8394 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
8395 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
8396 },
8397 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
8398 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
8399 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
8400 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8401 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8402 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8403 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8404 },
8405 ],
8406 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8407 },
8408 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
8409 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
8410 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
8411 },
8412 ],
8413 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
8414 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
8415 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
8416 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
8417 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
8418 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
8419 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
8420 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
8421 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
8422 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
8423 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
8424 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
8425 },
8426 ],
8427 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
8428 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
8429 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
8430 },
8431 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
8432 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
8433 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
8434 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8435 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8436 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8437 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8438 },
8439 ],
8440 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8441 },
8442 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
8443 },
8444 ],
8445 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
8446 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
8447 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
8448 },
8449 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
8450 { # Defines a threshold for categorizing time series values.
8451 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
8452 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
8453 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
8454 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
8455 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
8456 },
8457 ],
8458 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
8459 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
8460 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
8461 },
8462 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
8463 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
8464 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
8465 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8466 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8467 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8468 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8469 &quot;A String&quot;,
8470 ],
8471 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8472 },
8473 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8474 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8475 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8476 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8477 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8478 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8479 },
8480 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8481 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8482 },
8483 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
8484 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8485 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8486 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8487 &quot;A String&quot;,
8488 ],
8489 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8490 },
8491 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8492 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8493 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8494 },
8495 },
8496 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
8497 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
8498 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8499 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8500 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8501 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8502 &quot;A String&quot;,
8503 ],
8504 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8505 },
8506 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8507 },
8508 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
8509 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8510 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8511 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8512 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8513 &quot;A String&quot;,
8514 ],
8515 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8516 },
8517 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8518 },
8519 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8520 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8521 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8522 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8523 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8524 },
8525 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8526 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8527 },
8528 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
8529 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8530 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8531 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8532 &quot;A String&quot;,
8533 ],
8534 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8535 },
8536 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8537 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8538 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8539 },
8540 },
8541 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
8542 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
8543 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
8544 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
8545 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
8546 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
8547 &quot;A String&quot;,
8548 ],
8549 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
8550 &quot;A String&quot;,
8551 ],
8552 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
8553 &quot;A String&quot;,
8554 ],
8555 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
8556 { # Span attribute key and list of values to be used for filtering.
8557 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
8558 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
8559 &quot;A String&quot;,
8560 ],
8561 },
8562 ],
8563 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
8564 &quot;A String&quot;,
8565 ],
8566 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
8567 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
8568 &quot;A String&quot;,
8569 ],
8570 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
8571 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
8572 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
8573 &quot;A String&quot;,
8574 ],
8575 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
8576 &quot;A String&quot;,
8577 ],
8578 },
8579 },
8580 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
8581 },
8582 },
8583 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
8584 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
8585 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
8586 },
8587 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
8588 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
8589 },
8590 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
8591 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
8592 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
8593 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
8594 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
8595 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
8596 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
8597 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
8598 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
8599 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
8600 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
8601 },
8602 },
8603 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
8604 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
8605 { # The persistent settings for a table&#x27;s columns.
8606 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
8607 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
8608 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
8609 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
8610 { # Defines a threshold for categorizing time series values.
8611 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
8612 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
8613 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
8614 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
8615 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
8616 },
8617 ],
8618 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
8619 },
8620 ],
8621 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
8622 { # Groups a time series query definition with table options.
8623 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
8624 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
8625 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
8626 &quot;A String&quot;,
8627 ],
8628 },
8629 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
8630 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
8631 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
8632 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
8633 },
8634 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
8635 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
8636 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
8637 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8638 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8639 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8640 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8641 &quot;A String&quot;,
8642 ],
8643 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8644 },
8645 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8646 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8647 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8648 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8649 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8650 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8651 },
8652 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8653 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8654 },
8655 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
8656 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8657 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8658 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8659 &quot;A String&quot;,
8660 ],
8661 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8662 },
8663 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8664 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8665 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8666 },
8667 },
8668 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
8669 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
8670 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8671 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8672 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8673 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8674 &quot;A String&quot;,
8675 ],
8676 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8677 },
8678 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8679 },
8680 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
8681 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8682 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8683 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8684 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8685 &quot;A String&quot;,
8686 ],
8687 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8688 },
8689 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8690 },
8691 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8692 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8693 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8694 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8695 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8696 },
8697 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8698 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8699 },
8700 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
8701 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8702 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8703 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8704 &quot;A String&quot;,
8705 ],
8706 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8707 },
8708 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8709 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8710 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8711 },
8712 },
8713 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
8714 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
8715 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
8716 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
8717 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
8718 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
8719 &quot;A String&quot;,
8720 ],
8721 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
8722 &quot;A String&quot;,
8723 ],
8724 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
8725 &quot;A String&quot;,
8726 ],
8727 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
8728 { # Span attribute key and list of values to be used for filtering.
8729 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
8730 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
8731 &quot;A String&quot;,
8732 ],
8733 },
8734 ],
8735 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
8736 &quot;A String&quot;,
8737 ],
8738 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
8739 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
8740 &quot;A String&quot;,
8741 ],
8742 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
8743 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
8744 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
8745 &quot;A String&quot;,
8746 ],
8747 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
8748 &quot;A String&quot;,
8749 ],
8750 },
8751 },
8752 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
8753 },
8754 },
8755 ],
8756 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
8757 },
8758 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
8759 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
8760 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
8761 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
8762 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
8763 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
8764 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
8765 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8766 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8767 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8768 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8769 },
8770 ],
8771 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8772 },
8773 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
8774 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
8775 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
8776 },
8777 ],
8778 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
8779 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
8780 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
8781 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8782 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8783 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8784 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8785 },
8786 ],
8787 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8788 },
8789 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
8790 },
8791 ],
8792 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
8793 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
8794 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
8795 },
8796 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
8797 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
8798 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
8799 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8800 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8801 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8802 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8803 &quot;A String&quot;,
8804 ],
8805 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8806 },
8807 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8808 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8809 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8810 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8811 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8812 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8813 },
8814 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8815 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8816 },
8817 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
8818 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8819 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8820 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8821 &quot;A String&quot;,
8822 ],
8823 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8824 },
8825 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8826 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8827 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8828 },
8829 },
8830 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
8831 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
8832 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8833 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8834 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8835 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8836 &quot;A String&quot;,
8837 ],
8838 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8839 },
8840 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8841 },
8842 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
8843 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8844 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8845 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8846 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8847 &quot;A String&quot;,
8848 ],
8849 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8850 },
8851 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
8852 },
8853 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
8854 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
8855 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
8856 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
8857 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
8858 },
8859 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
8860 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
8861 },
8862 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
8863 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8864 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
8865 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
8866 &quot;A String&quot;,
8867 ],
8868 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
8869 },
8870 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
8871 &quot;numTimeSeries&quot;: 42, # How many time series to output.
8872 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
8873 },
8874 },
8875 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
8876 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
8877 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
8878 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
8879 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
8880 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
8881 &quot;A String&quot;,
8882 ],
8883 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
8884 &quot;A String&quot;,
8885 ],
8886 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
8887 &quot;A String&quot;,
8888 ],
8889 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
8890 { # Span attribute key and list of values to be used for filtering.
8891 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
8892 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
8893 &quot;A String&quot;,
8894 ],
8895 },
8896 ],
8897 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
8898 &quot;A String&quot;,
8899 ],
8900 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
8901 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
8902 &quot;A String&quot;,
8903 ],
8904 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
8905 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
8906 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
8907 &quot;A String&quot;,
8908 ],
8909 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
8910 &quot;A String&quot;,
8911 ],
8912 },
8913 },
8914 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
8915 },
8916 },
8917 ],
8918 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
8919 &quot;A String&quot;,
8920 ],
8921 },
8922 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
8923 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
8924 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
8925 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
8926 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
8927 },
8928 },
8929 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
8930 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
8931 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
8932 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
8933 },
8934 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
8935 { # Groups a time series query definition with charting options.
8936 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
8937 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
8938 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
8939 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8940 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8941 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8942 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8943 },
8944 ],
8945 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8946 },
8947 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
8948 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
8949 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
8950 },
8951 ],
8952 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
8953 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
8954 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
8955 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
8956 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
8957 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
8958 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
8959 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
8960 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
8961 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
8962 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
8963 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
8964 },
8965 ],
8966 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
8967 &quot;measures&quot;: [ # Optional. A collection of measures.
8968 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
8969 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
8970 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
8971 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
8972 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
8973 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
8974 },
8975 ],
8976 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
8977 },
8978 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
8979 },
8980 ],
8981 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
8982 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
8983 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
8984 { # Data structure to storing column&#x27;s sort strategy
8985 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
8986 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
8987 },
8988 ],
8989 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
8990 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
8991 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
8992 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
8993 },
8994 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
8995 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
8996 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
8997 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
8998 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
8999 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9000 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9001 &quot;A String&quot;,
9002 ],
9003 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9004 },
9005 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9006 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9007 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9008 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9009 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9010 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9011 },
9012 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9013 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9014 },
9015 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
9016 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9017 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9018 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9019 &quot;A String&quot;,
9020 ],
9021 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9022 },
9023 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9024 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9025 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9026 },
9027 },
9028 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
9029 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
9030 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9031 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9032 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9033 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9034 &quot;A String&quot;,
9035 ],
9036 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9037 },
9038 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9039 },
9040 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
9041 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9042 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9043 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9044 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9045 &quot;A String&quot;,
9046 ],
9047 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9048 },
9049 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9050 },
9051 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9052 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9053 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9054 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9055 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9056 },
9057 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9058 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9059 },
9060 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
9061 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9062 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9063 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9064 &quot;A String&quot;,
9065 ],
9066 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9067 },
9068 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9069 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9070 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9071 },
9072 },
9073 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
9074 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
9075 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
9076 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
9077 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
9078 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
9079 &quot;A String&quot;,
9080 ],
9081 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
9082 &quot;A String&quot;,
9083 ],
9084 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
9085 &quot;A String&quot;,
9086 ],
9087 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
9088 { # Span attribute key and list of values to be used for filtering.
9089 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
9090 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
9091 &quot;A String&quot;,
9092 ],
9093 },
9094 ],
9095 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
9096 &quot;A String&quot;,
9097 ],
9098 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
9099 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
9100 &quot;A String&quot;,
9101 ],
9102 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
9103 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
9104 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
9105 &quot;A String&quot;,
9106 ],
9107 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
9108 &quot;A String&quot;,
9109 ],
9110 },
9111 },
9112 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
9113 },
9114 },
9115 ],
9116 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
9117 { # Defines a threshold for categorizing time series values.
9118 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
9119 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
9120 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
9121 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
9122 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
9123 },
9124 ],
9125 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
9126 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
9127 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
9128 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
9129 },
9130 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
9131 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
9132 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
9133 },
9134 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
9135 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
9136 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
9137 },
9138 },
9139 },
9140 ],
9141 },
9142 ],
9143 },
9144 &quot;dashboardFilters&quot;: [ # Filters to reduce the amount of data charted based on the filter criteria.
9145 { # A filter to reduce the amount of data charted in relevant widgets.
9146 &quot;filterType&quot;: &quot;A String&quot;, # The specified filter type
9147 &quot;labelKey&quot;: &quot;A String&quot;, # Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.
9148 &quot;stringArray&quot;: { # An array of strings # A list of possible string values for the filter
9149 &quot;values&quot;: [ # The values of the array
9150 &quot;A String&quot;,
9151 ],
9152 },
9153 &quot;stringArrayValue&quot;: { # An array of strings # An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED
9154 &quot;values&quot;: [ # The values of the array
9155 &quot;A String&quot;,
9156 ],
9157 },
9158 &quot;stringValue&quot;: &quot;A String&quot;, # A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED
9159 &quot;templateVariable&quot;: &quot;A String&quot;, # The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.
9160 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported
9161 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
9162 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
9163 },
9164 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
9165 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
9166 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
9167 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9168 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9169 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9170 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9171 &quot;A String&quot;,
9172 ],
9173 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9174 },
9175 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9176 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9177 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9178 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9179 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9180 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9181 },
9182 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9183 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9184 },
9185 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
9186 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9187 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9188 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9189 &quot;A String&quot;,
9190 ],
9191 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9192 },
9193 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9194 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9195 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9196 },
9197 },
9198 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
9199 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
9200 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9201 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9202 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9203 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9204 &quot;A String&quot;,
9205 ],
9206 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9207 },
9208 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9209 },
9210 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
9211 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9212 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9213 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9214 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9215 &quot;A String&quot;,
9216 ],
9217 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9218 },
9219 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9220 },
9221 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9222 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9223 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9224 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9225 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9226 },
9227 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9228 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9229 },
9230 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
9231 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9232 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9233 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9234 &quot;A String&quot;,
9235 ],
9236 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9237 },
9238 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9239 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9240 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9241 },
9242 },
9243 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
9244 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
9245 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
9246 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
9247 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
9248 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
9249 &quot;A String&quot;,
9250 ],
9251 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
9252 &quot;A String&quot;,
9253 ],
9254 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
9255 &quot;A String&quot;,
9256 ],
9257 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
9258 { # Span attribute key and list of values to be used for filtering.
9259 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
9260 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
9261 &quot;A String&quot;,
9262 ],
9263 },
9264 ],
9265 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
9266 &quot;A String&quot;,
9267 ],
9268 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
9269 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
9270 &quot;A String&quot;,
9271 ],
9272 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
9273 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
9274 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
9275 &quot;A String&quot;,
9276 ],
9277 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
9278 &quot;A String&quot;,
9279 ],
9280 },
9281 },
9282 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
9283 },
9284 &quot;valueType&quot;: &quot;A String&quot;, # The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.
9285 },
9286 ],
9287 &quot;displayName&quot;: &quot;A String&quot;, # Required. The mutable, human-readable name.
9288 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. An etag is returned in the response to GetDashboard, and users are expected to put that etag in the request to UpdateDashboard to ensure that their change will be applied to the same version of the Dashboard configuration. The field should not be passed during dashboard creation.
9289 &quot;gridLayout&quot;: { # A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy. # Content is arranged with a basic layout that re-flows a simple list of informational elements like widgets or tiles.
9290 &quot;columns&quot;: &quot;A String&quot;, # The number of columns into which the view&#x27;s width is divided. If omitted or set to zero, a system default will be used while rendering.
9291 &quot;widgets&quot;: [ # The informational elements that are arranged into the columns row-first.
9292 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
9293 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
9294 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
9295 },
9296 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
9297 },
9298 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
9299 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
9300 },
9301 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
9302 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
9303 &quot;A String&quot;,
9304 ],
9305 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
9306 &quot;A String&quot;,
9307 ],
9308 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
9309 &quot;A String&quot;,
9310 ],
9311 },
9312 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
9313 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
9314 },
9315 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
9316 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
9317 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
9318 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
9319 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
9320 &quot;a_key&quot;: &quot;A String&quot;,
9321 },
9322 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
9323 },
9324 ],
9325 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
9326 &quot;A String&quot;,
9327 ],
9328 },
9329 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
9330 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
9331 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
9332 &quot;A String&quot;,
9333 ],
9334 },
9335 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
9336 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
9337 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
9338 { # Groups a time series query definition.
9339 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
9340 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
9341 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
9342 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
9343 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
9344 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
9345 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
9346 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
9347 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
9348 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
9349 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
9350 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
9351 },
9352 ],
9353 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
9354 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
9355 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
9356 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
9357 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
9358 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
9359 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
9360 },
9361 ],
9362 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
9363 },
9364 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
9365 },
9366 ],
9367 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
9368 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
9369 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
9370 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
9371 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
9372 },
9373 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
9374 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
9375 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
9376 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9377 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9378 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9379 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9380 &quot;A String&quot;,
9381 ],
9382 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9383 },
9384 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9385 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9386 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9387 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9388 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9389 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9390 },
9391 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9392 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9393 },
9394 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
9395 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9396 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9397 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9398 &quot;A String&quot;,
9399 ],
9400 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9401 },
9402 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9403 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9404 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9405 },
9406 },
9407 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
9408 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
9409 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9410 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9411 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9412 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9413 &quot;A String&quot;,
9414 ],
9415 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9416 },
9417 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9418 },
9419 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
9420 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9421 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9422 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9423 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9424 &quot;A String&quot;,
9425 ],
9426 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9427 },
9428 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9429 },
9430 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9431 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9432 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9433 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9434 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9435 },
9436 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9437 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9438 },
9439 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
9440 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9441 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9442 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9443 &quot;A String&quot;,
9444 ],
9445 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9446 },
9447 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9448 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9449 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9450 },
9451 },
9452 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
9453 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
9454 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
9455 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
9456 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
9457 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
9458 &quot;A String&quot;,
9459 ],
9460 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
9461 &quot;A String&quot;,
9462 ],
9463 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
9464 &quot;A String&quot;,
9465 ],
9466 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
9467 { # Span attribute key and list of values to be used for filtering.
9468 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
9469 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
9470 &quot;A String&quot;,
9471 ],
9472 },
9473 ],
9474 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
9475 &quot;A String&quot;,
9476 ],
9477 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
9478 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
9479 &quot;A String&quot;,
9480 ],
9481 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
9482 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
9483 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
9484 &quot;A String&quot;,
9485 ],
9486 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
9487 &quot;A String&quot;,
9488 ],
9489 },
9490 },
9491 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
9492 },
9493 },
9494 ],
9495 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
9496 },
9497 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
9498 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
9499 },
9500 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
9501 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
9502 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
9503 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
9504 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
9505 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
9506 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
9507 },
9508 ],
9509 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
9510 },
9511 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
9512 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
9513 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
9514 },
9515 ],
9516 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
9517 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
9518 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
9519 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
9520 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
9521 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
9522 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
9523 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
9524 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
9525 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
9526 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
9527 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
9528 },
9529 ],
9530 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
9531 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
9532 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
9533 },
9534 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
9535 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
9536 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
9537 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
9538 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
9539 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
9540 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
9541 },
9542 ],
9543 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
9544 },
9545 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
9546 },
9547 ],
9548 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
9549 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
9550 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
9551 },
9552 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
9553 { # Defines a threshold for categorizing time series values.
9554 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
9555 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
9556 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
9557 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
9558 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
9559 },
9560 ],
9561 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
9562 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
9563 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
9564 },
9565 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
9566 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
9567 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
9568 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9569 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9570 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9571 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9572 &quot;A String&quot;,
9573 ],
9574 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9575 },
9576 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9577 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9578 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9579 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9580 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9581 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9582 },
9583 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9584 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9585 },
9586 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
9587 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9588 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9589 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9590 &quot;A String&quot;,
9591 ],
9592 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9593 },
9594 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9595 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9596 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9597 },
9598 },
9599 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
9600 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
9601 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9602 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9603 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9604 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9605 &quot;A String&quot;,
9606 ],
9607 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9608 },
9609 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9610 },
9611 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
9612 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9613 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9614 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9615 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9616 &quot;A String&quot;,
9617 ],
9618 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9619 },
9620 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9621 },
9622 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9623 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9624 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9625 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9626 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9627 },
9628 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9629 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9630 },
9631 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
9632 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9633 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9634 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9635 &quot;A String&quot;,
9636 ],
9637 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9638 },
9639 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9640 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9641 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9642 },
9643 },
9644 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
9645 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
9646 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
9647 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
9648 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
9649 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
9650 &quot;A String&quot;,
9651 ],
9652 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
9653 &quot;A String&quot;,
9654 ],
9655 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
9656 &quot;A String&quot;,
9657 ],
9658 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
9659 { # Span attribute key and list of values to be used for filtering.
9660 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
9661 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
9662 &quot;A String&quot;,
9663 ],
9664 },
9665 ],
9666 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
9667 &quot;A String&quot;,
9668 ],
9669 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
9670 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
9671 &quot;A String&quot;,
9672 ],
9673 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
9674 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
9675 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
9676 &quot;A String&quot;,
9677 ],
9678 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
9679 &quot;A String&quot;,
9680 ],
9681 },
9682 },
9683 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
9684 },
9685 },
9686 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
9687 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
9688 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
9689 },
9690 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
9691 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
9692 },
9693 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
9694 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
9695 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
9696 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
9697 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
9698 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
9699 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
9700 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
9701 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
9702 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
9703 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
9704 },
9705 },
9706 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
9707 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
9708 { # The persistent settings for a table&#x27;s columns.
9709 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
9710 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
9711 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
9712 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
9713 { # Defines a threshold for categorizing time series values.
9714 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
9715 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
9716 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
9717 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
9718 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
9719 },
9720 ],
9721 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
9722 },
9723 ],
9724 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
9725 { # Groups a time series query definition with table options.
9726 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
9727 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
9728 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
9729 &quot;A String&quot;,
9730 ],
9731 },
9732 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
9733 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
9734 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
9735 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
9736 },
9737 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
9738 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
9739 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
9740 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9741 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9742 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9743 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9744 &quot;A String&quot;,
9745 ],
9746 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9747 },
9748 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9749 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9750 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9751 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9752 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9753 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9754 },
9755 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9756 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9757 },
9758 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
9759 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9760 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9761 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9762 &quot;A String&quot;,
9763 ],
9764 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9765 },
9766 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9767 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9768 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9769 },
9770 },
9771 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
9772 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
9773 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9774 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9775 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9776 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9777 &quot;A String&quot;,
9778 ],
9779 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9780 },
9781 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9782 },
9783 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
9784 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9785 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9786 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9787 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9788 &quot;A String&quot;,
9789 ],
9790 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9791 },
9792 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9793 },
9794 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9795 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9796 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9797 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9798 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9799 },
9800 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9801 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9802 },
9803 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
9804 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9805 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9806 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9807 &quot;A String&quot;,
9808 ],
9809 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9810 },
9811 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9812 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9813 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9814 },
9815 },
9816 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
9817 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
9818 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
9819 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
9820 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
9821 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
9822 &quot;A String&quot;,
9823 ],
9824 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
9825 &quot;A String&quot;,
9826 ],
9827 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
9828 &quot;A String&quot;,
9829 ],
9830 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
9831 { # Span attribute key and list of values to be used for filtering.
9832 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
9833 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
9834 &quot;A String&quot;,
9835 ],
9836 },
9837 ],
9838 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
9839 &quot;A String&quot;,
9840 ],
9841 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
9842 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
9843 &quot;A String&quot;,
9844 ],
9845 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
9846 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
9847 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
9848 &quot;A String&quot;,
9849 ],
9850 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
9851 &quot;A String&quot;,
9852 ],
9853 },
9854 },
9855 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
9856 },
9857 },
9858 ],
9859 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
9860 },
9861 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
9862 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
9863 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
9864 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
9865 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
9866 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
9867 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
9868 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
9869 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
9870 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
9871 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
9872 },
9873 ],
9874 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
9875 },
9876 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
9877 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
9878 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
9879 },
9880 ],
9881 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
9882 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
9883 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
9884 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
9885 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
9886 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
9887 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
9888 },
9889 ],
9890 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
9891 },
9892 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
9893 },
9894 ],
9895 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
9896 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
9897 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
9898 },
9899 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
9900 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
9901 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
9902 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9903 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9904 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9905 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9906 &quot;A String&quot;,
9907 ],
9908 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9909 },
9910 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9911 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9912 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9913 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9914 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9915 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9916 },
9917 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9918 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9919 },
9920 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
9921 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9922 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9923 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9924 &quot;A String&quot;,
9925 ],
9926 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9927 },
9928 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9929 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9930 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9931 },
9932 },
9933 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
9934 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
9935 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9936 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9937 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9938 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9939 &quot;A String&quot;,
9940 ],
9941 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9942 },
9943 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9944 },
9945 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
9946 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
9947 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9948 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9949 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9950 &quot;A String&quot;,
9951 ],
9952 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9953 },
9954 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
9955 },
9956 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
9957 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
9958 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
9959 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
9960 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
9961 },
9962 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
9963 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
9964 },
9965 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
9966 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
9967 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
9968 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
9969 &quot;A String&quot;,
9970 ],
9971 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
9972 },
9973 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
9974 &quot;numTimeSeries&quot;: 42, # How many time series to output.
9975 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
9976 },
9977 },
9978 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
9979 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
9980 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
9981 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
9982 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
9983 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
9984 &quot;A String&quot;,
9985 ],
9986 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
9987 &quot;A String&quot;,
9988 ],
9989 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
9990 &quot;A String&quot;,
9991 ],
9992 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
9993 { # Span attribute key and list of values to be used for filtering.
9994 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
9995 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
9996 &quot;A String&quot;,
9997 ],
9998 },
9999 ],
10000 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
10001 &quot;A String&quot;,
10002 ],
10003 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
10004 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
10005 &quot;A String&quot;,
10006 ],
10007 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
10008 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
10009 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
10010 &quot;A String&quot;,
10011 ],
10012 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
10013 &quot;A String&quot;,
10014 ],
10015 },
10016 },
10017 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
10018 },
10019 },
10020 ],
10021 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
10022 &quot;A String&quot;,
10023 ],
10024 },
10025 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
10026 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
10027 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
10028 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
10029 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
10030 },
10031 },
10032 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
10033 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
10034 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
10035 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
10036 },
10037 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
10038 { # Groups a time series query definition with charting options.
10039 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
10040 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
10041 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
10042 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10043 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10044 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10045 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10046 },
10047 ],
10048 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10049 },
10050 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
10051 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
10052 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
10053 },
10054 ],
10055 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
10056 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
10057 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
10058 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
10059 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
10060 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
10061 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
10062 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
10063 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
10064 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
10065 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
10066 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
10067 },
10068 ],
10069 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
10070 &quot;measures&quot;: [ # Optional. A collection of measures.
10071 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
10072 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
10073 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10074 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10075 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10076 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10077 },
10078 ],
10079 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10080 },
10081 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
10082 },
10083 ],
10084 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
10085 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
10086 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
10087 { # Data structure to storing column&#x27;s sort strategy
10088 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
10089 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
10090 },
10091 ],
10092 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
10093 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
10094 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
10095 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
10096 },
10097 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
10098 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
10099 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
10100 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10101 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10102 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10103 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10104 &quot;A String&quot;,
10105 ],
10106 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10107 },
10108 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10109 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10110 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10111 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10112 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10113 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10114 },
10115 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10116 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10117 },
10118 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
10119 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10120 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10121 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10122 &quot;A String&quot;,
10123 ],
10124 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10125 },
10126 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10127 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10128 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10129 },
10130 },
10131 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
10132 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
10133 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10134 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10135 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10136 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10137 &quot;A String&quot;,
10138 ],
10139 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10140 },
10141 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10142 },
10143 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
10144 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10145 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10146 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10147 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10148 &quot;A String&quot;,
10149 ],
10150 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10151 },
10152 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10153 },
10154 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10155 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10156 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10157 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10158 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10159 },
10160 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10161 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10162 },
10163 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
10164 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10165 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10166 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10167 &quot;A String&quot;,
10168 ],
10169 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10170 },
10171 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10172 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10173 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10174 },
10175 },
10176 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
10177 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
10178 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
10179 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
10180 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
10181 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
10182 &quot;A String&quot;,
10183 ],
10184 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
10185 &quot;A String&quot;,
10186 ],
10187 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
10188 &quot;A String&quot;,
10189 ],
10190 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
10191 { # Span attribute key and list of values to be used for filtering.
10192 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
10193 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
10194 &quot;A String&quot;,
10195 ],
10196 },
10197 ],
10198 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
10199 &quot;A String&quot;,
10200 ],
10201 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
10202 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
10203 &quot;A String&quot;,
10204 ],
10205 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
10206 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
10207 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
10208 &quot;A String&quot;,
10209 ],
10210 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
10211 &quot;A String&quot;,
10212 ],
10213 },
10214 },
10215 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
10216 },
10217 },
10218 ],
10219 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
10220 { # Defines a threshold for categorizing time series values.
10221 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
10222 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
10223 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
10224 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
10225 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
10226 },
10227 ],
10228 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
10229 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
10230 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
10231 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
10232 },
10233 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
10234 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
10235 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
10236 },
10237 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
10238 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
10239 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
10240 },
10241 },
10242 },
10243 ],
10244 },
10245 &quot;labels&quot;: { # Labels applied to the dashboard
10246 &quot;a_key&quot;: &quot;A String&quot;,
10247 },
10248 &quot;mosaicLayout&quot;: { # A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid. # The content is arranged as a grid of tiles, with each content widget occupying one or more grid blocks.
10249 &quot;columns&quot;: 42, # The number of columns in the mosaic grid. The number of columns must be between 1 and 48, inclusive.
10250 &quot;tiles&quot;: [ # The tiles to display.
10251 { # A single tile in the mosaic. The placement and size of the tile are configurable.
10252 &quot;height&quot;: 42, # The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
10253 &quot;widget&quot;: { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard. # The informational widget contained in the tile. For example an XyChart.
10254 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
10255 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
10256 },
10257 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
10258 },
10259 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
10260 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
10261 },
10262 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
10263 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
10264 &quot;A String&quot;,
10265 ],
10266 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
10267 &quot;A String&quot;,
10268 ],
10269 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
10270 &quot;A String&quot;,
10271 ],
10272 },
10273 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
10274 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
10275 },
10276 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
10277 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
10278 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
10279 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
10280 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
10281 &quot;a_key&quot;: &quot;A String&quot;,
10282 },
10283 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
10284 },
10285 ],
10286 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
10287 &quot;A String&quot;,
10288 ],
10289 },
10290 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
10291 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
10292 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
10293 &quot;A String&quot;,
10294 ],
10295 },
10296 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
10297 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
10298 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
10299 { # Groups a time series query definition.
10300 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
10301 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
10302 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
10303 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
10304 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
10305 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
10306 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
10307 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
10308 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
10309 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
10310 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
10311 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
10312 },
10313 ],
10314 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
10315 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
10316 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
10317 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10318 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10319 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10320 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10321 },
10322 ],
10323 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10324 },
10325 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
10326 },
10327 ],
10328 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
10329 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
10330 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
10331 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
10332 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
10333 },
10334 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
10335 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
10336 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
10337 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10338 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10339 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10340 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10341 &quot;A String&quot;,
10342 ],
10343 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10344 },
10345 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10346 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10347 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10348 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10349 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10350 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10351 },
10352 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10353 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10354 },
10355 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
10356 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10357 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10358 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10359 &quot;A String&quot;,
10360 ],
10361 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10362 },
10363 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10364 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10365 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10366 },
10367 },
10368 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
10369 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
10370 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10371 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10372 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10373 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10374 &quot;A String&quot;,
10375 ],
10376 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10377 },
10378 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10379 },
10380 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
10381 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10382 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10383 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10384 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10385 &quot;A String&quot;,
10386 ],
10387 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10388 },
10389 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10390 },
10391 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10392 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10393 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10394 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10395 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10396 },
10397 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10398 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10399 },
10400 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
10401 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10402 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10403 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10404 &quot;A String&quot;,
10405 ],
10406 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10407 },
10408 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10409 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10410 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10411 },
10412 },
10413 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
10414 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
10415 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
10416 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
10417 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
10418 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
10419 &quot;A String&quot;,
10420 ],
10421 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
10422 &quot;A String&quot;,
10423 ],
10424 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
10425 &quot;A String&quot;,
10426 ],
10427 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
10428 { # Span attribute key and list of values to be used for filtering.
10429 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
10430 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
10431 &quot;A String&quot;,
10432 ],
10433 },
10434 ],
10435 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
10436 &quot;A String&quot;,
10437 ],
10438 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
10439 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
10440 &quot;A String&quot;,
10441 ],
10442 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
10443 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
10444 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
10445 &quot;A String&quot;,
10446 ],
10447 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
10448 &quot;A String&quot;,
10449 ],
10450 },
10451 },
10452 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
10453 },
10454 },
10455 ],
10456 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
10457 },
10458 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
10459 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
10460 },
10461 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
10462 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
10463 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
10464 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10465 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10466 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10467 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10468 },
10469 ],
10470 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10471 },
10472 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
10473 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
10474 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
10475 },
10476 ],
10477 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
10478 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
10479 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
10480 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
10481 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
10482 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
10483 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
10484 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
10485 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
10486 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
10487 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
10488 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
10489 },
10490 ],
10491 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
10492 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
10493 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
10494 },
10495 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
10496 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
10497 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
10498 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10499 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10500 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10501 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10502 },
10503 ],
10504 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10505 },
10506 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
10507 },
10508 ],
10509 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
10510 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
10511 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
10512 },
10513 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
10514 { # Defines a threshold for categorizing time series values.
10515 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
10516 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
10517 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
10518 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
10519 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
10520 },
10521 ],
10522 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
10523 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
10524 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
10525 },
10526 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
10527 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
10528 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
10529 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10530 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10531 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10532 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10533 &quot;A String&quot;,
10534 ],
10535 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10536 },
10537 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10538 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10539 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10540 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10541 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10542 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10543 },
10544 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10545 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10546 },
10547 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
10548 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10549 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10550 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10551 &quot;A String&quot;,
10552 ],
10553 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10554 },
10555 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10556 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10557 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10558 },
10559 },
10560 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
10561 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
10562 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10563 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10564 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10565 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10566 &quot;A String&quot;,
10567 ],
10568 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10569 },
10570 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10571 },
10572 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
10573 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10574 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10575 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10576 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10577 &quot;A String&quot;,
10578 ],
10579 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10580 },
10581 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10582 },
10583 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10584 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10585 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10586 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10587 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10588 },
10589 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10590 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10591 },
10592 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
10593 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10594 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10595 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10596 &quot;A String&quot;,
10597 ],
10598 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10599 },
10600 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10601 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10602 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10603 },
10604 },
10605 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
10606 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
10607 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
10608 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
10609 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
10610 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
10611 &quot;A String&quot;,
10612 ],
10613 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
10614 &quot;A String&quot;,
10615 ],
10616 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
10617 &quot;A String&quot;,
10618 ],
10619 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
10620 { # Span attribute key and list of values to be used for filtering.
10621 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
10622 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
10623 &quot;A String&quot;,
10624 ],
10625 },
10626 ],
10627 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
10628 &quot;A String&quot;,
10629 ],
10630 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
10631 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
10632 &quot;A String&quot;,
10633 ],
10634 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
10635 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
10636 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
10637 &quot;A String&quot;,
10638 ],
10639 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
10640 &quot;A String&quot;,
10641 ],
10642 },
10643 },
10644 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
10645 },
10646 },
10647 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
10648 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
10649 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
10650 },
10651 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
10652 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
10653 },
10654 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
10655 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
10656 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
10657 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
10658 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
10659 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
10660 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
10661 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
10662 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
10663 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
10664 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
10665 },
10666 },
10667 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
10668 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
10669 { # The persistent settings for a table&#x27;s columns.
10670 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
10671 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
10672 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
10673 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
10674 { # Defines a threshold for categorizing time series values.
10675 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
10676 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
10677 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
10678 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
10679 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
10680 },
10681 ],
10682 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
10683 },
10684 ],
10685 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
10686 { # Groups a time series query definition with table options.
10687 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
10688 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
10689 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
10690 &quot;A String&quot;,
10691 ],
10692 },
10693 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
10694 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
10695 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
10696 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
10697 },
10698 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
10699 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
10700 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
10701 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10702 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10703 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10704 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10705 &quot;A String&quot;,
10706 ],
10707 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10708 },
10709 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10710 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10711 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10712 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10713 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10714 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10715 },
10716 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10717 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10718 },
10719 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
10720 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10721 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10722 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10723 &quot;A String&quot;,
10724 ],
10725 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10726 },
10727 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10728 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10729 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10730 },
10731 },
10732 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
10733 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
10734 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10735 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10736 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10737 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10738 &quot;A String&quot;,
10739 ],
10740 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10741 },
10742 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10743 },
10744 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
10745 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10746 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10747 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10748 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10749 &quot;A String&quot;,
10750 ],
10751 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10752 },
10753 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10754 },
10755 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10756 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10757 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10758 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10759 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10760 },
10761 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10762 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10763 },
10764 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
10765 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10766 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10767 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10768 &quot;A String&quot;,
10769 ],
10770 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10771 },
10772 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10773 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10774 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10775 },
10776 },
10777 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
10778 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
10779 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
10780 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
10781 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
10782 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
10783 &quot;A String&quot;,
10784 ],
10785 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
10786 &quot;A String&quot;,
10787 ],
10788 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
10789 &quot;A String&quot;,
10790 ],
10791 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
10792 { # Span attribute key and list of values to be used for filtering.
10793 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
10794 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
10795 &quot;A String&quot;,
10796 ],
10797 },
10798 ],
10799 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
10800 &quot;A String&quot;,
10801 ],
10802 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
10803 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
10804 &quot;A String&quot;,
10805 ],
10806 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
10807 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
10808 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
10809 &quot;A String&quot;,
10810 ],
10811 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
10812 &quot;A String&quot;,
10813 ],
10814 },
10815 },
10816 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
10817 },
10818 },
10819 ],
10820 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
10821 },
10822 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
10823 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
10824 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
10825 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
10826 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
10827 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
10828 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
10829 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10830 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10831 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10832 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10833 },
10834 ],
10835 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10836 },
10837 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
10838 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
10839 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
10840 },
10841 ],
10842 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
10843 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
10844 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
10845 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
10846 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
10847 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
10848 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
10849 },
10850 ],
10851 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
10852 },
10853 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
10854 },
10855 ],
10856 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
10857 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
10858 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
10859 },
10860 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
10861 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
10862 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
10863 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10864 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10865 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10866 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10867 &quot;A String&quot;,
10868 ],
10869 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10870 },
10871 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10872 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10873 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10874 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10875 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10876 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10877 },
10878 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10879 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10880 },
10881 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
10882 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10883 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10884 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10885 &quot;A String&quot;,
10886 ],
10887 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10888 },
10889 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10890 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10891 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10892 },
10893 },
10894 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
10895 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
10896 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10897 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10898 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10899 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10900 &quot;A String&quot;,
10901 ],
10902 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10903 },
10904 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10905 },
10906 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
10907 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
10908 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10909 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10910 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10911 &quot;A String&quot;,
10912 ],
10913 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10914 },
10915 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
10916 },
10917 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
10918 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
10919 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
10920 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
10921 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
10922 },
10923 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
10924 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
10925 },
10926 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
10927 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
10928 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
10929 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
10930 &quot;A String&quot;,
10931 ],
10932 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
10933 },
10934 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
10935 &quot;numTimeSeries&quot;: 42, # How many time series to output.
10936 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
10937 },
10938 },
10939 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
10940 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
10941 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
10942 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
10943 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
10944 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
10945 &quot;A String&quot;,
10946 ],
10947 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
10948 &quot;A String&quot;,
10949 ],
10950 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
10951 &quot;A String&quot;,
10952 ],
10953 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
10954 { # Span attribute key and list of values to be used for filtering.
10955 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
10956 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
10957 &quot;A String&quot;,
10958 ],
10959 },
10960 ],
10961 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
10962 &quot;A String&quot;,
10963 ],
10964 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
10965 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
10966 &quot;A String&quot;,
10967 ],
10968 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
10969 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
10970 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
10971 &quot;A String&quot;,
10972 ],
10973 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
10974 &quot;A String&quot;,
10975 ],
10976 },
10977 },
10978 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
10979 },
10980 },
10981 ],
10982 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
10983 &quot;A String&quot;,
10984 ],
10985 },
10986 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
10987 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
10988 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
10989 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
10990 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
10991 },
10992 },
10993 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
10994 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
10995 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
10996 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
10997 },
10998 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
10999 { # Groups a time series query definition with charting options.
11000 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
11001 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
11002 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
11003 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11004 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11005 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11006 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11007 },
11008 ],
11009 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11010 },
11011 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
11012 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
11013 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
11014 },
11015 ],
11016 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
11017 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
11018 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
11019 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
11020 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
11021 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
11022 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
11023 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
11024 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
11025 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
11026 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
11027 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
11028 },
11029 ],
11030 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
11031 &quot;measures&quot;: [ # Optional. A collection of measures.
11032 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
11033 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
11034 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11035 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11036 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11037 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11038 },
11039 ],
11040 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11041 },
11042 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
11043 },
11044 ],
11045 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
11046 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
11047 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
11048 { # Data structure to storing column&#x27;s sort strategy
11049 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
11050 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
11051 },
11052 ],
11053 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
11054 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
11055 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
11056 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
11057 },
11058 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
11059 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
11060 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
11061 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11062 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11063 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11064 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11065 &quot;A String&quot;,
11066 ],
11067 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11068 },
11069 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11070 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11071 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11072 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11073 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11074 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11075 },
11076 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11077 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11078 },
11079 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
11080 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11081 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11082 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11083 &quot;A String&quot;,
11084 ],
11085 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11086 },
11087 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11088 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11089 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11090 },
11091 },
11092 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
11093 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
11094 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11095 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11096 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11097 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11098 &quot;A String&quot;,
11099 ],
11100 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11101 },
11102 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11103 },
11104 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
11105 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11106 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11107 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11108 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11109 &quot;A String&quot;,
11110 ],
11111 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11112 },
11113 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11114 },
11115 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11116 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11117 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11118 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11119 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11120 },
11121 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11122 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11123 },
11124 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
11125 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11126 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11127 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11128 &quot;A String&quot;,
11129 ],
11130 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11131 },
11132 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11133 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11134 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11135 },
11136 },
11137 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
11138 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
11139 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
11140 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
11141 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
11142 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
11143 &quot;A String&quot;,
11144 ],
11145 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
11146 &quot;A String&quot;,
11147 ],
11148 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
11149 &quot;A String&quot;,
11150 ],
11151 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
11152 { # Span attribute key and list of values to be used for filtering.
11153 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
11154 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
11155 &quot;A String&quot;,
11156 ],
11157 },
11158 ],
11159 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
11160 &quot;A String&quot;,
11161 ],
11162 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
11163 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
11164 &quot;A String&quot;,
11165 ],
11166 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
11167 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
11168 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
11169 &quot;A String&quot;,
11170 ],
11171 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
11172 &quot;A String&quot;,
11173 ],
11174 },
11175 },
11176 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
11177 },
11178 },
11179 ],
11180 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
11181 { # Defines a threshold for categorizing time series values.
11182 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
11183 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
11184 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
11185 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
11186 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
11187 },
11188 ],
11189 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
11190 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
11191 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
11192 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
11193 },
11194 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
11195 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
11196 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
11197 },
11198 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
11199 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
11200 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
11201 },
11202 },
11203 },
11204 &quot;width&quot;: 42, # The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
11205 &quot;xPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
11206 &quot;yPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
11207 },
11208 ],
11209 },
11210 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dashboard.
11211 &quot;rowLayout&quot;: { # A simplified layout that divides the available space into rows and arranges a set of widgets horizontally in each row. # The content is divided into equally spaced rows and the widgets are arranged horizontally.
11212 &quot;rows&quot;: [ # The rows of content to display.
11213 { # Defines the layout properties and content for a row.
11214 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.
11215 &quot;widgets&quot;: [ # The display widgets arranged horizontally in this row.
11216 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
11217 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
11218 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
11219 },
11220 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
11221 },
11222 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
11223 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
11224 },
11225 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
11226 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
11227 &quot;A String&quot;,
11228 ],
11229 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
11230 &quot;A String&quot;,
11231 ],
11232 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
11233 &quot;A String&quot;,
11234 ],
11235 },
11236 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
11237 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
11238 },
11239 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
11240 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
11241 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
11242 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
11243 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
11244 &quot;a_key&quot;: &quot;A String&quot;,
11245 },
11246 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
11247 },
11248 ],
11249 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
11250 &quot;A String&quot;,
11251 ],
11252 },
11253 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
11254 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
11255 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
11256 &quot;A String&quot;,
11257 ],
11258 },
11259 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
11260 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
11261 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
11262 { # Groups a time series query definition.
11263 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
11264 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
11265 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
11266 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
11267 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
11268 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
11269 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
11270 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
11271 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
11272 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
11273 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
11274 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
11275 },
11276 ],
11277 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
11278 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
11279 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
11280 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11281 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11282 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11283 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11284 },
11285 ],
11286 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11287 },
11288 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
11289 },
11290 ],
11291 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
11292 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
11293 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
11294 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
11295 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
11296 },
11297 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
11298 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
11299 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
11300 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11301 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11302 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11303 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11304 &quot;A String&quot;,
11305 ],
11306 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11307 },
11308 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11309 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11310 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11311 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11312 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11313 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11314 },
11315 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11316 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11317 },
11318 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
11319 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11320 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11321 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11322 &quot;A String&quot;,
11323 ],
11324 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11325 },
11326 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11327 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11328 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11329 },
11330 },
11331 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
11332 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
11333 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11334 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11335 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11336 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11337 &quot;A String&quot;,
11338 ],
11339 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11340 },
11341 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11342 },
11343 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
11344 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11345 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11346 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11347 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11348 &quot;A String&quot;,
11349 ],
11350 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11351 },
11352 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11353 },
11354 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11355 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11356 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11357 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11358 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11359 },
11360 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11361 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11362 },
11363 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
11364 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11365 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11366 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11367 &quot;A String&quot;,
11368 ],
11369 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11370 },
11371 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11372 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11373 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11374 },
11375 },
11376 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
11377 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
11378 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
11379 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
11380 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
11381 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
11382 &quot;A String&quot;,
11383 ],
11384 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
11385 &quot;A String&quot;,
11386 ],
11387 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
11388 &quot;A String&quot;,
11389 ],
11390 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
11391 { # Span attribute key and list of values to be used for filtering.
11392 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
11393 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
11394 &quot;A String&quot;,
11395 ],
11396 },
11397 ],
11398 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
11399 &quot;A String&quot;,
11400 ],
11401 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
11402 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
11403 &quot;A String&quot;,
11404 ],
11405 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
11406 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
11407 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
11408 &quot;A String&quot;,
11409 ],
11410 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
11411 &quot;A String&quot;,
11412 ],
11413 },
11414 },
11415 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
11416 },
11417 },
11418 ],
11419 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
11420 },
11421 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
11422 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
11423 },
11424 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
11425 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
11426 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
11427 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11428 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11429 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11430 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11431 },
11432 ],
11433 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11434 },
11435 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
11436 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
11437 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
11438 },
11439 ],
11440 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
11441 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
11442 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
11443 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
11444 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
11445 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
11446 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
11447 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
11448 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
11449 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
11450 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
11451 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
11452 },
11453 ],
11454 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
11455 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
11456 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
11457 },
11458 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
11459 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
11460 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
11461 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11462 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11463 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11464 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11465 },
11466 ],
11467 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11468 },
11469 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
11470 },
11471 ],
11472 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
11473 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
11474 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
11475 },
11476 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
11477 { # Defines a threshold for categorizing time series values.
11478 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
11479 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
11480 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
11481 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
11482 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
11483 },
11484 ],
11485 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
11486 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
11487 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
11488 },
11489 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
11490 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
11491 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
11492 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11493 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11494 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11495 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11496 &quot;A String&quot;,
11497 ],
11498 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11499 },
11500 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11501 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11502 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11503 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11504 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11505 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11506 },
11507 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11508 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11509 },
11510 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
11511 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11512 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11513 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11514 &quot;A String&quot;,
11515 ],
11516 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11517 },
11518 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11519 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11520 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11521 },
11522 },
11523 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
11524 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
11525 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11526 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11527 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11528 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11529 &quot;A String&quot;,
11530 ],
11531 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11532 },
11533 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11534 },
11535 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
11536 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11537 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11538 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11539 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11540 &quot;A String&quot;,
11541 ],
11542 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11543 },
11544 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11545 },
11546 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11547 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11548 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11549 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11550 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11551 },
11552 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11553 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11554 },
11555 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
11556 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11557 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11558 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11559 &quot;A String&quot;,
11560 ],
11561 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11562 },
11563 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11564 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11565 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11566 },
11567 },
11568 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
11569 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
11570 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
11571 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
11572 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
11573 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
11574 &quot;A String&quot;,
11575 ],
11576 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
11577 &quot;A String&quot;,
11578 ],
11579 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
11580 &quot;A String&quot;,
11581 ],
11582 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
11583 { # Span attribute key and list of values to be used for filtering.
11584 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
11585 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
11586 &quot;A String&quot;,
11587 ],
11588 },
11589 ],
11590 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
11591 &quot;A String&quot;,
11592 ],
11593 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
11594 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
11595 &quot;A String&quot;,
11596 ],
11597 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
11598 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
11599 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
11600 &quot;A String&quot;,
11601 ],
11602 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
11603 &quot;A String&quot;,
11604 ],
11605 },
11606 },
11607 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
11608 },
11609 },
11610 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
11611 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
11612 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
11613 },
11614 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
11615 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
11616 },
11617 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
11618 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
11619 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
11620 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
11621 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
11622 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
11623 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
11624 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
11625 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
11626 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
11627 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
11628 },
11629 },
11630 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
11631 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
11632 { # The persistent settings for a table&#x27;s columns.
11633 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
11634 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
11635 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
11636 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
11637 { # Defines a threshold for categorizing time series values.
11638 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
11639 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
11640 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
11641 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
11642 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
11643 },
11644 ],
11645 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
11646 },
11647 ],
11648 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
11649 { # Groups a time series query definition with table options.
11650 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
11651 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
11652 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
11653 &quot;A String&quot;,
11654 ],
11655 },
11656 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
11657 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
11658 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
11659 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
11660 },
11661 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
11662 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
11663 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
11664 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11665 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11666 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11667 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11668 &quot;A String&quot;,
11669 ],
11670 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11671 },
11672 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11673 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11674 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11675 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11676 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11677 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11678 },
11679 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11680 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11681 },
11682 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
11683 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11684 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11685 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11686 &quot;A String&quot;,
11687 ],
11688 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11689 },
11690 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11691 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11692 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11693 },
11694 },
11695 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
11696 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
11697 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11698 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11699 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11700 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11701 &quot;A String&quot;,
11702 ],
11703 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11704 },
11705 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11706 },
11707 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
11708 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11709 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11710 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11711 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11712 &quot;A String&quot;,
11713 ],
11714 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11715 },
11716 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11717 },
11718 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11719 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11720 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11721 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11722 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11723 },
11724 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11725 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11726 },
11727 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
11728 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11729 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11730 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11731 &quot;A String&quot;,
11732 ],
11733 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11734 },
11735 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11736 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11737 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11738 },
11739 },
11740 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
11741 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
11742 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
11743 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
11744 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
11745 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
11746 &quot;A String&quot;,
11747 ],
11748 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
11749 &quot;A String&quot;,
11750 ],
11751 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
11752 &quot;A String&quot;,
11753 ],
11754 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
11755 { # Span attribute key and list of values to be used for filtering.
11756 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
11757 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
11758 &quot;A String&quot;,
11759 ],
11760 },
11761 ],
11762 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
11763 &quot;A String&quot;,
11764 ],
11765 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
11766 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
11767 &quot;A String&quot;,
11768 ],
11769 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
11770 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
11771 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
11772 &quot;A String&quot;,
11773 ],
11774 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
11775 &quot;A String&quot;,
11776 ],
11777 },
11778 },
11779 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
11780 },
11781 },
11782 ],
11783 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
11784 },
11785 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
11786 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
11787 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
11788 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
11789 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
11790 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
11791 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
11792 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11793 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11794 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11795 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11796 },
11797 ],
11798 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11799 },
11800 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
11801 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
11802 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
11803 },
11804 ],
11805 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
11806 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
11807 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
11808 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11809 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11810 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11811 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11812 },
11813 ],
11814 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11815 },
11816 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
11817 },
11818 ],
11819 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
11820 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
11821 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
11822 },
11823 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
11824 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
11825 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
11826 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11827 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11828 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11829 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11830 &quot;A String&quot;,
11831 ],
11832 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11833 },
11834 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11835 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11836 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11837 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11838 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11839 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11840 },
11841 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11842 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11843 },
11844 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
11845 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11846 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11847 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11848 &quot;A String&quot;,
11849 ],
11850 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11851 },
11852 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11853 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11854 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11855 },
11856 },
11857 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
11858 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
11859 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11860 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11861 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11862 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11863 &quot;A String&quot;,
11864 ],
11865 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11866 },
11867 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11868 },
11869 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
11870 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
11871 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11872 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11873 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11874 &quot;A String&quot;,
11875 ],
11876 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11877 },
11878 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
11879 },
11880 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
11881 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
11882 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
11883 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
11884 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
11885 },
11886 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
11887 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
11888 },
11889 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
11890 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
11891 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
11892 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
11893 &quot;A String&quot;,
11894 ],
11895 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
11896 },
11897 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
11898 &quot;numTimeSeries&quot;: 42, # How many time series to output.
11899 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
11900 },
11901 },
11902 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
11903 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
11904 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
11905 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
11906 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
11907 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
11908 &quot;A String&quot;,
11909 ],
11910 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
11911 &quot;A String&quot;,
11912 ],
11913 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
11914 &quot;A String&quot;,
11915 ],
11916 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
11917 { # Span attribute key and list of values to be used for filtering.
11918 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
11919 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
11920 &quot;A String&quot;,
11921 ],
11922 },
11923 ],
11924 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
11925 &quot;A String&quot;,
11926 ],
11927 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
11928 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
11929 &quot;A String&quot;,
11930 ],
11931 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
11932 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
11933 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
11934 &quot;A String&quot;,
11935 ],
11936 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
11937 &quot;A String&quot;,
11938 ],
11939 },
11940 },
11941 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
11942 },
11943 },
11944 ],
11945 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
11946 &quot;A String&quot;,
11947 ],
11948 },
11949 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
11950 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
11951 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
11952 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
11953 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
11954 },
11955 },
11956 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
11957 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
11958 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
11959 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
11960 },
11961 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
11962 { # Groups a time series query definition with charting options.
11963 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
11964 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
11965 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
11966 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11967 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11968 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
11969 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
11970 },
11971 ],
11972 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
11973 },
11974 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
11975 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
11976 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
11977 },
11978 ],
11979 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
11980 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
11981 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
11982 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
11983 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
11984 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
11985 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
11986 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
11987 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
11988 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
11989 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
11990 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
11991 },
11992 ],
11993 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
11994 &quot;measures&quot;: [ # Optional. A collection of measures.
11995 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
11996 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
11997 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
11998 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
11999 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12000 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12001 },
12002 ],
12003 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12004 },
12005 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
12006 },
12007 ],
12008 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
12009 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
12010 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
12011 { # Data structure to storing column&#x27;s sort strategy
12012 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
12013 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
12014 },
12015 ],
12016 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
12017 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
12018 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
12019 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
12020 },
12021 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
12022 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
12023 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
12024 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12025 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12026 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12027 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12028 &quot;A String&quot;,
12029 ],
12030 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12031 },
12032 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12033 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12034 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12035 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12036 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12037 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12038 },
12039 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12040 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12041 },
12042 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
12043 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12044 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12045 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12046 &quot;A String&quot;,
12047 ],
12048 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12049 },
12050 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12051 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12052 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12053 },
12054 },
12055 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
12056 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
12057 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12058 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12059 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12060 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12061 &quot;A String&quot;,
12062 ],
12063 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12064 },
12065 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12066 },
12067 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
12068 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12069 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12070 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12071 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12072 &quot;A String&quot;,
12073 ],
12074 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12075 },
12076 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12077 },
12078 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12079 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12080 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12081 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12082 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12083 },
12084 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12085 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12086 },
12087 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
12088 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12089 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12090 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12091 &quot;A String&quot;,
12092 ],
12093 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12094 },
12095 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12096 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12097 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12098 },
12099 },
12100 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
12101 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
12102 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
12103 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
12104 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
12105 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
12106 &quot;A String&quot;,
12107 ],
12108 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
12109 &quot;A String&quot;,
12110 ],
12111 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
12112 &quot;A String&quot;,
12113 ],
12114 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
12115 { # Span attribute key and list of values to be used for filtering.
12116 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
12117 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
12118 &quot;A String&quot;,
12119 ],
12120 },
12121 ],
12122 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
12123 &quot;A String&quot;,
12124 ],
12125 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
12126 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
12127 &quot;A String&quot;,
12128 ],
12129 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
12130 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
12131 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
12132 &quot;A String&quot;,
12133 ],
12134 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
12135 &quot;A String&quot;,
12136 ],
12137 },
12138 },
12139 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
12140 },
12141 },
12142 ],
12143 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
12144 { # Defines a threshold for categorizing time series values.
12145 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
12146 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
12147 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
12148 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
12149 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
12150 },
12151 ],
12152 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
12153 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
12154 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
12155 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
12156 },
12157 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
12158 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
12159 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
12160 },
12161 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
12162 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
12163 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
12164 },
12165 },
12166 },
12167 ],
12168 },
12169 ],
12170 },
12171 }</pre>
12172 </div>
12173
12174 <div class="method">
12175 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
12176 <pre>Lists the existing dashboards.This method requires the monitoring.dashboards.list permission on the specified project. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).
12177
12178 Args:
12179 parent: string, Required. The scope of the dashboards to list. The format is: projects/[PROJECT_ID_OR_NUMBER] (required)
12180 pageSize: integer, A positive number that is the maximum number of results to return. If unspecified, a default of 1000 is used.
12181 pageToken: string, Optional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
12182 x__xgafv: string, V1 error format.
12183 Allowed values
12184 1 - v1 error format
12185 2 - v2 error format
12186
12187 Returns:
12188 An object of the form:
12189
12190 { # The ListDashboards request.
12191 &quot;dashboards&quot;: [ # The list of requested dashboards.
12192 { # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
12193 &quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
12194 &quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
12195 &quot;A String&quot;,
12196 ],
12197 &quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
12198 { # Annotation configuration for one event type on a dashboard
12199 &quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
12200 &quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
12201 &quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
12202 &quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
12203 &quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
12204 &quot;A String&quot;,
12205 ],
12206 },
12207 ],
12208 },
12209 &quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
12210 &quot;columns&quot;: [ # The columns of content to display.
12211 { # Defines the layout properties and content for a column.
12212 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this column. The column weight is used to adjust the width of columns on the screen (relative to peers). Greater the weight, greater the width of the column on the screen. If omitted, a value of 1 is used while rendering.
12213 &quot;widgets&quot;: [ # The display widgets arranged vertically in this column.
12214 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
12215 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
12216 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
12217 },
12218 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
12219 },
12220 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
12221 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
12222 },
12223 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
12224 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
12225 &quot;A String&quot;,
12226 ],
12227 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
12228 &quot;A String&quot;,
12229 ],
12230 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
12231 &quot;A String&quot;,
12232 ],
12233 },
12234 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
12235 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
12236 },
12237 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
12238 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
12239 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
12240 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
12241 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
12242 &quot;a_key&quot;: &quot;A String&quot;,
12243 },
12244 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
12245 },
12246 ],
12247 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
12248 &quot;A String&quot;,
12249 ],
12250 },
12251 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
12252 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
12253 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
12254 &quot;A String&quot;,
12255 ],
12256 },
12257 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
12258 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
12259 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
12260 { # Groups a time series query definition.
12261 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
12262 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
12263 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
12264 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
12265 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
12266 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
12267 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
12268 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
12269 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
12270 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
12271 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
12272 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
12273 },
12274 ],
12275 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
12276 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
12277 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
12278 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12279 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12280 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12281 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12282 },
12283 ],
12284 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12285 },
12286 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
12287 },
12288 ],
12289 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
12290 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
12291 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
12292 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
12293 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
12294 },
12295 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
12296 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
12297 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
12298 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12299 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12300 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12301 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12302 &quot;A String&quot;,
12303 ],
12304 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12305 },
12306 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12307 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12308 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12309 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12310 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12311 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12312 },
12313 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12314 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12315 },
12316 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
12317 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12318 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12319 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12320 &quot;A String&quot;,
12321 ],
12322 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12323 },
12324 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12325 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12326 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12327 },
12328 },
12329 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
12330 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
12331 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12332 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12333 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12334 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12335 &quot;A String&quot;,
12336 ],
12337 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12338 },
12339 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12340 },
12341 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
12342 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12343 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12344 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12345 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12346 &quot;A String&quot;,
12347 ],
12348 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12349 },
12350 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12351 },
12352 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12353 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12354 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12355 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12356 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12357 },
12358 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12359 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12360 },
12361 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
12362 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12363 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12364 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12365 &quot;A String&quot;,
12366 ],
12367 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12368 },
12369 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12370 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12371 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12372 },
12373 },
12374 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
12375 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
12376 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
12377 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
12378 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
12379 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
12380 &quot;A String&quot;,
12381 ],
12382 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
12383 &quot;A String&quot;,
12384 ],
12385 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
12386 &quot;A String&quot;,
12387 ],
12388 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
12389 { # Span attribute key and list of values to be used for filtering.
12390 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
12391 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
12392 &quot;A String&quot;,
12393 ],
12394 },
12395 ],
12396 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
12397 &quot;A String&quot;,
12398 ],
12399 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
12400 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
12401 &quot;A String&quot;,
12402 ],
12403 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
12404 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
12405 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
12406 &quot;A String&quot;,
12407 ],
12408 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
12409 &quot;A String&quot;,
12410 ],
12411 },
12412 },
12413 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
12414 },
12415 },
12416 ],
12417 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
12418 },
12419 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
12420 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
12421 },
12422 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
12423 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
12424 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
12425 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12426 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12427 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12428 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12429 },
12430 ],
12431 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12432 },
12433 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
12434 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
12435 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
12436 },
12437 ],
12438 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
12439 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
12440 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
12441 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
12442 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
12443 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
12444 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
12445 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
12446 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
12447 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
12448 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
12449 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
12450 },
12451 ],
12452 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
12453 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
12454 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
12455 },
12456 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
12457 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
12458 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
12459 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12460 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12461 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12462 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12463 },
12464 ],
12465 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12466 },
12467 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
12468 },
12469 ],
12470 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
12471 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
12472 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
12473 },
12474 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
12475 { # Defines a threshold for categorizing time series values.
12476 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
12477 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
12478 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
12479 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
12480 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
12481 },
12482 ],
12483 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
12484 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
12485 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
12486 },
12487 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
12488 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
12489 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
12490 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12491 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12492 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12493 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12494 &quot;A String&quot;,
12495 ],
12496 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12497 },
12498 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12499 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12500 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12501 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12502 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12503 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12504 },
12505 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12506 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12507 },
12508 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
12509 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12510 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12511 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12512 &quot;A String&quot;,
12513 ],
12514 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12515 },
12516 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12517 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12518 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12519 },
12520 },
12521 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
12522 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
12523 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12524 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12525 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12526 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12527 &quot;A String&quot;,
12528 ],
12529 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12530 },
12531 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12532 },
12533 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
12534 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12535 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12536 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12537 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12538 &quot;A String&quot;,
12539 ],
12540 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12541 },
12542 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12543 },
12544 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12545 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12546 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12547 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12548 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12549 },
12550 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12551 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12552 },
12553 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
12554 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12555 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12556 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12557 &quot;A String&quot;,
12558 ],
12559 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12560 },
12561 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12562 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12563 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12564 },
12565 },
12566 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
12567 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
12568 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
12569 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
12570 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
12571 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
12572 &quot;A String&quot;,
12573 ],
12574 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
12575 &quot;A String&quot;,
12576 ],
12577 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
12578 &quot;A String&quot;,
12579 ],
12580 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
12581 { # Span attribute key and list of values to be used for filtering.
12582 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
12583 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
12584 &quot;A String&quot;,
12585 ],
12586 },
12587 ],
12588 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
12589 &quot;A String&quot;,
12590 ],
12591 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
12592 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
12593 &quot;A String&quot;,
12594 ],
12595 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
12596 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
12597 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
12598 &quot;A String&quot;,
12599 ],
12600 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
12601 &quot;A String&quot;,
12602 ],
12603 },
12604 },
12605 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
12606 },
12607 },
12608 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
12609 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
12610 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
12611 },
12612 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
12613 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
12614 },
12615 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
12616 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
12617 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
12618 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
12619 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
12620 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
12621 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
12622 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
12623 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
12624 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
12625 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
12626 },
12627 },
12628 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
12629 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
12630 { # The persistent settings for a table&#x27;s columns.
12631 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
12632 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
12633 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
12634 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
12635 { # Defines a threshold for categorizing time series values.
12636 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
12637 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
12638 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
12639 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
12640 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
12641 },
12642 ],
12643 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
12644 },
12645 ],
12646 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
12647 { # Groups a time series query definition with table options.
12648 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
12649 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
12650 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
12651 &quot;A String&quot;,
12652 ],
12653 },
12654 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
12655 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
12656 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
12657 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
12658 },
12659 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
12660 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
12661 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
12662 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12663 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12664 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12665 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12666 &quot;A String&quot;,
12667 ],
12668 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12669 },
12670 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12671 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12672 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12673 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12674 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12675 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12676 },
12677 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12678 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12679 },
12680 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
12681 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12682 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12683 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12684 &quot;A String&quot;,
12685 ],
12686 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12687 },
12688 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12689 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12690 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12691 },
12692 },
12693 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
12694 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
12695 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12696 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12697 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12698 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12699 &quot;A String&quot;,
12700 ],
12701 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12702 },
12703 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12704 },
12705 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
12706 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12707 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12708 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12709 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12710 &quot;A String&quot;,
12711 ],
12712 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12713 },
12714 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12715 },
12716 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12717 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12718 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12719 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12720 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12721 },
12722 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12723 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12724 },
12725 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
12726 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12727 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12728 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12729 &quot;A String&quot;,
12730 ],
12731 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12732 },
12733 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12734 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12735 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12736 },
12737 },
12738 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
12739 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
12740 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
12741 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
12742 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
12743 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
12744 &quot;A String&quot;,
12745 ],
12746 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
12747 &quot;A String&quot;,
12748 ],
12749 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
12750 &quot;A String&quot;,
12751 ],
12752 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
12753 { # Span attribute key and list of values to be used for filtering.
12754 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
12755 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
12756 &quot;A String&quot;,
12757 ],
12758 },
12759 ],
12760 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
12761 &quot;A String&quot;,
12762 ],
12763 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
12764 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
12765 &quot;A String&quot;,
12766 ],
12767 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
12768 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
12769 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
12770 &quot;A String&quot;,
12771 ],
12772 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
12773 &quot;A String&quot;,
12774 ],
12775 },
12776 },
12777 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
12778 },
12779 },
12780 ],
12781 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
12782 },
12783 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
12784 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
12785 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
12786 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
12787 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
12788 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
12789 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
12790 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12791 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12792 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12793 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12794 },
12795 ],
12796 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12797 },
12798 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
12799 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
12800 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
12801 },
12802 ],
12803 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
12804 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
12805 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
12806 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12807 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12808 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12809 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12810 },
12811 ],
12812 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12813 },
12814 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
12815 },
12816 ],
12817 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
12818 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
12819 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
12820 },
12821 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
12822 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
12823 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
12824 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12825 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12826 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12827 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12828 &quot;A String&quot;,
12829 ],
12830 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12831 },
12832 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12833 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12834 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12835 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12836 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12837 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12838 },
12839 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12840 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12841 },
12842 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
12843 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12844 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12845 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12846 &quot;A String&quot;,
12847 ],
12848 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12849 },
12850 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12851 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12852 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12853 },
12854 },
12855 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
12856 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
12857 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12858 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12859 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12860 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12861 &quot;A String&quot;,
12862 ],
12863 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12864 },
12865 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12866 },
12867 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
12868 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
12869 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12870 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12871 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12872 &quot;A String&quot;,
12873 ],
12874 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12875 },
12876 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
12877 },
12878 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
12879 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
12880 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
12881 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
12882 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
12883 },
12884 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
12885 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
12886 },
12887 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
12888 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
12889 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
12890 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
12891 &quot;A String&quot;,
12892 ],
12893 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
12894 },
12895 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
12896 &quot;numTimeSeries&quot;: 42, # How many time series to output.
12897 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
12898 },
12899 },
12900 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
12901 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
12902 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
12903 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
12904 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
12905 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
12906 &quot;A String&quot;,
12907 ],
12908 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
12909 &quot;A String&quot;,
12910 ],
12911 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
12912 &quot;A String&quot;,
12913 ],
12914 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
12915 { # Span attribute key and list of values to be used for filtering.
12916 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
12917 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
12918 &quot;A String&quot;,
12919 ],
12920 },
12921 ],
12922 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
12923 &quot;A String&quot;,
12924 ],
12925 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
12926 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
12927 &quot;A String&quot;,
12928 ],
12929 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
12930 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
12931 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
12932 &quot;A String&quot;,
12933 ],
12934 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
12935 &quot;A String&quot;,
12936 ],
12937 },
12938 },
12939 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
12940 },
12941 },
12942 ],
12943 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
12944 &quot;A String&quot;,
12945 ],
12946 },
12947 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
12948 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
12949 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
12950 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
12951 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
12952 },
12953 },
12954 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
12955 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
12956 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
12957 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
12958 },
12959 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
12960 { # Groups a time series query definition with charting options.
12961 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
12962 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
12963 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
12964 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12965 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12966 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12967 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12968 },
12969 ],
12970 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
12971 },
12972 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
12973 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
12974 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
12975 },
12976 ],
12977 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
12978 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
12979 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
12980 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
12981 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
12982 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
12983 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
12984 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
12985 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
12986 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
12987 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
12988 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
12989 },
12990 ],
12991 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
12992 &quot;measures&quot;: [ # Optional. A collection of measures.
12993 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
12994 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
12995 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
12996 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
12997 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
12998 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
12999 },
13000 ],
13001 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
13002 },
13003 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
13004 },
13005 ],
13006 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
13007 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
13008 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
13009 { # Data structure to storing column&#x27;s sort strategy
13010 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
13011 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
13012 },
13013 ],
13014 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
13015 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
13016 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
13017 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
13018 },
13019 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
13020 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
13021 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
13022 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13023 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13024 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13025 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13026 &quot;A String&quot;,
13027 ],
13028 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13029 },
13030 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13031 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13032 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13033 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13034 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13035 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13036 },
13037 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13038 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13039 },
13040 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
13041 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13042 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13043 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13044 &quot;A String&quot;,
13045 ],
13046 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13047 },
13048 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13049 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13050 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13051 },
13052 },
13053 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
13054 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
13055 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13056 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13057 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13058 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13059 &quot;A String&quot;,
13060 ],
13061 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13062 },
13063 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13064 },
13065 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
13066 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13067 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13068 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13069 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13070 &quot;A String&quot;,
13071 ],
13072 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13073 },
13074 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13075 },
13076 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13077 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13078 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13079 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13080 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13081 },
13082 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13083 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13084 },
13085 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
13086 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13087 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13088 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13089 &quot;A String&quot;,
13090 ],
13091 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13092 },
13093 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13094 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13095 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13096 },
13097 },
13098 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
13099 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
13100 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
13101 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
13102 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
13103 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
13104 &quot;A String&quot;,
13105 ],
13106 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
13107 &quot;A String&quot;,
13108 ],
13109 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
13110 &quot;A String&quot;,
13111 ],
13112 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
13113 { # Span attribute key and list of values to be used for filtering.
13114 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
13115 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
13116 &quot;A String&quot;,
13117 ],
13118 },
13119 ],
13120 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
13121 &quot;A String&quot;,
13122 ],
13123 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
13124 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
13125 &quot;A String&quot;,
13126 ],
13127 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
13128 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
13129 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
13130 &quot;A String&quot;,
13131 ],
13132 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
13133 &quot;A String&quot;,
13134 ],
13135 },
13136 },
13137 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
13138 },
13139 },
13140 ],
13141 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
13142 { # Defines a threshold for categorizing time series values.
13143 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
13144 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
13145 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
13146 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
13147 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
13148 },
13149 ],
13150 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
13151 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
13152 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
13153 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
13154 },
13155 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
13156 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
13157 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
13158 },
13159 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
13160 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
13161 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
13162 },
13163 },
13164 },
13165 ],
13166 },
13167 ],
13168 },
13169 &quot;dashboardFilters&quot;: [ # Filters to reduce the amount of data charted based on the filter criteria.
13170 { # A filter to reduce the amount of data charted in relevant widgets.
13171 &quot;filterType&quot;: &quot;A String&quot;, # The specified filter type
13172 &quot;labelKey&quot;: &quot;A String&quot;, # Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.
13173 &quot;stringArray&quot;: { # An array of strings # A list of possible string values for the filter
13174 &quot;values&quot;: [ # The values of the array
13175 &quot;A String&quot;,
13176 ],
13177 },
13178 &quot;stringArrayValue&quot;: { # An array of strings # An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED
13179 &quot;values&quot;: [ # The values of the array
13180 &quot;A String&quot;,
13181 ],
13182 },
13183 &quot;stringValue&quot;: &quot;A String&quot;, # A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED
13184 &quot;templateVariable&quot;: &quot;A String&quot;, # The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.
13185 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported
13186 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
13187 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
13188 },
13189 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
13190 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
13191 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
13192 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13193 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13194 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13195 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13196 &quot;A String&quot;,
13197 ],
13198 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13199 },
13200 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13201 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13202 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13203 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13204 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13205 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13206 },
13207 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13208 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13209 },
13210 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
13211 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13212 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13213 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13214 &quot;A String&quot;,
13215 ],
13216 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13217 },
13218 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13219 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13220 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13221 },
13222 },
13223 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
13224 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
13225 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13226 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13227 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13228 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13229 &quot;A String&quot;,
13230 ],
13231 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13232 },
13233 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13234 },
13235 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
13236 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13237 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13238 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13239 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13240 &quot;A String&quot;,
13241 ],
13242 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13243 },
13244 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13245 },
13246 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13247 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13248 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13249 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13250 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13251 },
13252 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13253 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13254 },
13255 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
13256 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13257 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13258 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13259 &quot;A String&quot;,
13260 ],
13261 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13262 },
13263 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13264 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13265 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13266 },
13267 },
13268 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
13269 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
13270 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
13271 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
13272 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
13273 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
13274 &quot;A String&quot;,
13275 ],
13276 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
13277 &quot;A String&quot;,
13278 ],
13279 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
13280 &quot;A String&quot;,
13281 ],
13282 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
13283 { # Span attribute key and list of values to be used for filtering.
13284 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
13285 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
13286 &quot;A String&quot;,
13287 ],
13288 },
13289 ],
13290 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
13291 &quot;A String&quot;,
13292 ],
13293 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
13294 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
13295 &quot;A String&quot;,
13296 ],
13297 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
13298 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
13299 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
13300 &quot;A String&quot;,
13301 ],
13302 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
13303 &quot;A String&quot;,
13304 ],
13305 },
13306 },
13307 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
13308 },
13309 &quot;valueType&quot;: &quot;A String&quot;, # The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.
13310 },
13311 ],
13312 &quot;displayName&quot;: &quot;A String&quot;, # Required. The mutable, human-readable name.
13313 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. An etag is returned in the response to GetDashboard, and users are expected to put that etag in the request to UpdateDashboard to ensure that their change will be applied to the same version of the Dashboard configuration. The field should not be passed during dashboard creation.
13314 &quot;gridLayout&quot;: { # A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy. # Content is arranged with a basic layout that re-flows a simple list of informational elements like widgets or tiles.
13315 &quot;columns&quot;: &quot;A String&quot;, # The number of columns into which the view&#x27;s width is divided. If omitted or set to zero, a system default will be used while rendering.
13316 &quot;widgets&quot;: [ # The informational elements that are arranged into the columns row-first.
13317 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
13318 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
13319 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
13320 },
13321 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
13322 },
13323 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
13324 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
13325 },
13326 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
13327 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
13328 &quot;A String&quot;,
13329 ],
13330 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
13331 &quot;A String&quot;,
13332 ],
13333 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
13334 &quot;A String&quot;,
13335 ],
13336 },
13337 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
13338 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
13339 },
13340 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
13341 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
13342 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
13343 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
13344 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
13345 &quot;a_key&quot;: &quot;A String&quot;,
13346 },
13347 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
13348 },
13349 ],
13350 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
13351 &quot;A String&quot;,
13352 ],
13353 },
13354 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
13355 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
13356 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
13357 &quot;A String&quot;,
13358 ],
13359 },
13360 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
13361 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
13362 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
13363 { # Groups a time series query definition.
13364 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
13365 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
13366 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
13367 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
13368 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
13369 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
13370 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
13371 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
13372 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
13373 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
13374 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
13375 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
13376 },
13377 ],
13378 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
13379 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
13380 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
13381 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
13382 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
13383 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
13384 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
13385 },
13386 ],
13387 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
13388 },
13389 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
13390 },
13391 ],
13392 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
13393 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
13394 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
13395 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
13396 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
13397 },
13398 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
13399 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
13400 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
13401 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13402 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13403 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13404 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13405 &quot;A String&quot;,
13406 ],
13407 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13408 },
13409 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13410 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13411 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13412 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13413 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13414 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13415 },
13416 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13417 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13418 },
13419 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
13420 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13421 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13422 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13423 &quot;A String&quot;,
13424 ],
13425 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13426 },
13427 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13428 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13429 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13430 },
13431 },
13432 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
13433 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
13434 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13435 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13436 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13437 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13438 &quot;A String&quot;,
13439 ],
13440 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13441 },
13442 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13443 },
13444 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
13445 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13446 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13447 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13448 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13449 &quot;A String&quot;,
13450 ],
13451 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13452 },
13453 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13454 },
13455 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13456 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13457 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13458 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13459 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13460 },
13461 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13462 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13463 },
13464 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
13465 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13466 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13467 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13468 &quot;A String&quot;,
13469 ],
13470 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13471 },
13472 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13473 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13474 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13475 },
13476 },
13477 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
13478 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
13479 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
13480 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
13481 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
13482 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
13483 &quot;A String&quot;,
13484 ],
13485 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
13486 &quot;A String&quot;,
13487 ],
13488 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
13489 &quot;A String&quot;,
13490 ],
13491 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
13492 { # Span attribute key and list of values to be used for filtering.
13493 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
13494 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
13495 &quot;A String&quot;,
13496 ],
13497 },
13498 ],
13499 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
13500 &quot;A String&quot;,
13501 ],
13502 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
13503 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
13504 &quot;A String&quot;,
13505 ],
13506 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
13507 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
13508 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
13509 &quot;A String&quot;,
13510 ],
13511 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
13512 &quot;A String&quot;,
13513 ],
13514 },
13515 },
13516 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
13517 },
13518 },
13519 ],
13520 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
13521 },
13522 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
13523 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
13524 },
13525 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
13526 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
13527 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
13528 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
13529 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
13530 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
13531 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
13532 },
13533 ],
13534 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
13535 },
13536 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
13537 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
13538 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
13539 },
13540 ],
13541 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
13542 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
13543 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
13544 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
13545 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
13546 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
13547 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
13548 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
13549 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
13550 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
13551 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
13552 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
13553 },
13554 ],
13555 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
13556 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
13557 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
13558 },
13559 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
13560 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
13561 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
13562 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
13563 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
13564 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
13565 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
13566 },
13567 ],
13568 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
13569 },
13570 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
13571 },
13572 ],
13573 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
13574 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
13575 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
13576 },
13577 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
13578 { # Defines a threshold for categorizing time series values.
13579 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
13580 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
13581 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
13582 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
13583 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
13584 },
13585 ],
13586 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
13587 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
13588 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
13589 },
13590 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
13591 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
13592 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
13593 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13594 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13595 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13596 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13597 &quot;A String&quot;,
13598 ],
13599 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13600 },
13601 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13602 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13603 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13604 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13605 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13606 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13607 },
13608 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13609 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13610 },
13611 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
13612 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13613 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13614 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13615 &quot;A String&quot;,
13616 ],
13617 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13618 },
13619 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13620 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13621 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13622 },
13623 },
13624 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
13625 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
13626 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13627 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13628 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13629 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13630 &quot;A String&quot;,
13631 ],
13632 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13633 },
13634 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13635 },
13636 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
13637 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13638 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13639 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13640 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13641 &quot;A String&quot;,
13642 ],
13643 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13644 },
13645 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13646 },
13647 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13648 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13649 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13650 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13651 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13652 },
13653 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13654 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13655 },
13656 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
13657 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13658 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13659 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13660 &quot;A String&quot;,
13661 ],
13662 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13663 },
13664 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13665 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13666 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13667 },
13668 },
13669 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
13670 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
13671 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
13672 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
13673 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
13674 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
13675 &quot;A String&quot;,
13676 ],
13677 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
13678 &quot;A String&quot;,
13679 ],
13680 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
13681 &quot;A String&quot;,
13682 ],
13683 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
13684 { # Span attribute key and list of values to be used for filtering.
13685 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
13686 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
13687 &quot;A String&quot;,
13688 ],
13689 },
13690 ],
13691 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
13692 &quot;A String&quot;,
13693 ],
13694 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
13695 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
13696 &quot;A String&quot;,
13697 ],
13698 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
13699 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
13700 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
13701 &quot;A String&quot;,
13702 ],
13703 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
13704 &quot;A String&quot;,
13705 ],
13706 },
13707 },
13708 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
13709 },
13710 },
13711 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
13712 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
13713 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
13714 },
13715 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
13716 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
13717 },
13718 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
13719 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
13720 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
13721 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
13722 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
13723 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
13724 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
13725 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
13726 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
13727 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
13728 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
13729 },
13730 },
13731 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
13732 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
13733 { # The persistent settings for a table&#x27;s columns.
13734 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
13735 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
13736 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
13737 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
13738 { # Defines a threshold for categorizing time series values.
13739 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
13740 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
13741 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
13742 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
13743 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
13744 },
13745 ],
13746 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
13747 },
13748 ],
13749 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
13750 { # Groups a time series query definition with table options.
13751 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
13752 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
13753 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
13754 &quot;A String&quot;,
13755 ],
13756 },
13757 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
13758 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
13759 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
13760 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
13761 },
13762 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
13763 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
13764 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
13765 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13766 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13767 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13768 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13769 &quot;A String&quot;,
13770 ],
13771 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13772 },
13773 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13774 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13775 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13776 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13777 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13778 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13779 },
13780 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13781 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13782 },
13783 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
13784 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13785 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13786 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13787 &quot;A String&quot;,
13788 ],
13789 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13790 },
13791 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13792 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13793 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13794 },
13795 },
13796 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
13797 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
13798 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13799 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13800 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13801 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13802 &quot;A String&quot;,
13803 ],
13804 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13805 },
13806 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13807 },
13808 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
13809 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13810 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13811 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13812 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13813 &quot;A String&quot;,
13814 ],
13815 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13816 },
13817 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13818 },
13819 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13820 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13821 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13822 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13823 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13824 },
13825 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13826 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13827 },
13828 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
13829 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13830 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13831 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13832 &quot;A String&quot;,
13833 ],
13834 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13835 },
13836 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13837 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13838 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13839 },
13840 },
13841 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
13842 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
13843 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
13844 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
13845 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
13846 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
13847 &quot;A String&quot;,
13848 ],
13849 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
13850 &quot;A String&quot;,
13851 ],
13852 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
13853 &quot;A String&quot;,
13854 ],
13855 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
13856 { # Span attribute key and list of values to be used for filtering.
13857 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
13858 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
13859 &quot;A String&quot;,
13860 ],
13861 },
13862 ],
13863 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
13864 &quot;A String&quot;,
13865 ],
13866 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
13867 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
13868 &quot;A String&quot;,
13869 ],
13870 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
13871 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
13872 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
13873 &quot;A String&quot;,
13874 ],
13875 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
13876 &quot;A String&quot;,
13877 ],
13878 },
13879 },
13880 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
13881 },
13882 },
13883 ],
13884 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
13885 },
13886 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
13887 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
13888 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
13889 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
13890 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
13891 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
13892 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
13893 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
13894 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
13895 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
13896 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
13897 },
13898 ],
13899 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
13900 },
13901 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
13902 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
13903 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
13904 },
13905 ],
13906 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
13907 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
13908 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
13909 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
13910 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
13911 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
13912 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
13913 },
13914 ],
13915 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
13916 },
13917 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
13918 },
13919 ],
13920 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
13921 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
13922 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
13923 },
13924 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
13925 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
13926 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
13927 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13928 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13929 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13930 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13931 &quot;A String&quot;,
13932 ],
13933 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13934 },
13935 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13936 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13937 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13938 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13939 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13940 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13941 },
13942 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13943 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13944 },
13945 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
13946 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13947 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13948 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13949 &quot;A String&quot;,
13950 ],
13951 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13952 },
13953 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13954 &quot;numTimeSeries&quot;: 42, # How many time series to output.
13955 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
13956 },
13957 },
13958 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
13959 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
13960 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13961 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13962 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13963 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13964 &quot;A String&quot;,
13965 ],
13966 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13967 },
13968 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13969 },
13970 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
13971 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
13972 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13973 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13974 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13975 &quot;A String&quot;,
13976 ],
13977 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13978 },
13979 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
13980 },
13981 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
13982 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
13983 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
13984 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
13985 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
13986 },
13987 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
13988 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
13989 },
13990 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
13991 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
13992 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
13993 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
13994 &quot;A String&quot;,
13995 ],
13996 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
13997 },
13998 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
13999 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14000 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14001 },
14002 },
14003 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
14004 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
14005 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
14006 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
14007 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
14008 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
14009 &quot;A String&quot;,
14010 ],
14011 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
14012 &quot;A String&quot;,
14013 ],
14014 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
14015 &quot;A String&quot;,
14016 ],
14017 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
14018 { # Span attribute key and list of values to be used for filtering.
14019 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
14020 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
14021 &quot;A String&quot;,
14022 ],
14023 },
14024 ],
14025 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
14026 &quot;A String&quot;,
14027 ],
14028 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
14029 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
14030 &quot;A String&quot;,
14031 ],
14032 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
14033 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
14034 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
14035 &quot;A String&quot;,
14036 ],
14037 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
14038 &quot;A String&quot;,
14039 ],
14040 },
14041 },
14042 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
14043 },
14044 },
14045 ],
14046 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
14047 &quot;A String&quot;,
14048 ],
14049 },
14050 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
14051 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
14052 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
14053 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
14054 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
14055 },
14056 },
14057 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
14058 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
14059 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
14060 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
14061 },
14062 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
14063 { # Groups a time series query definition with charting options.
14064 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
14065 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
14066 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
14067 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14068 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14069 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14070 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14071 },
14072 ],
14073 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14074 },
14075 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
14076 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
14077 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
14078 },
14079 ],
14080 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
14081 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
14082 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
14083 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
14084 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
14085 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
14086 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
14087 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
14088 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
14089 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
14090 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
14091 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
14092 },
14093 ],
14094 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
14095 &quot;measures&quot;: [ # Optional. A collection of measures.
14096 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
14097 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
14098 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14099 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14100 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14101 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14102 },
14103 ],
14104 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14105 },
14106 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
14107 },
14108 ],
14109 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
14110 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
14111 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
14112 { # Data structure to storing column&#x27;s sort strategy
14113 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
14114 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
14115 },
14116 ],
14117 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
14118 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
14119 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
14120 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
14121 },
14122 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
14123 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
14124 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
14125 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14126 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14127 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14128 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14129 &quot;A String&quot;,
14130 ],
14131 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14132 },
14133 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14134 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14135 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14136 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14137 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14138 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14139 },
14140 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14141 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14142 },
14143 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
14144 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14145 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14146 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14147 &quot;A String&quot;,
14148 ],
14149 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14150 },
14151 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14152 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14153 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14154 },
14155 },
14156 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
14157 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
14158 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14159 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14160 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14161 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14162 &quot;A String&quot;,
14163 ],
14164 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14165 },
14166 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14167 },
14168 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
14169 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14170 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14171 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14172 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14173 &quot;A String&quot;,
14174 ],
14175 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14176 },
14177 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14178 },
14179 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14180 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14181 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14182 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14183 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14184 },
14185 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14186 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14187 },
14188 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
14189 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14190 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14191 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14192 &quot;A String&quot;,
14193 ],
14194 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14195 },
14196 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14197 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14198 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14199 },
14200 },
14201 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
14202 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
14203 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
14204 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
14205 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
14206 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
14207 &quot;A String&quot;,
14208 ],
14209 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
14210 &quot;A String&quot;,
14211 ],
14212 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
14213 &quot;A String&quot;,
14214 ],
14215 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
14216 { # Span attribute key and list of values to be used for filtering.
14217 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
14218 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
14219 &quot;A String&quot;,
14220 ],
14221 },
14222 ],
14223 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
14224 &quot;A String&quot;,
14225 ],
14226 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
14227 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
14228 &quot;A String&quot;,
14229 ],
14230 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
14231 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
14232 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
14233 &quot;A String&quot;,
14234 ],
14235 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
14236 &quot;A String&quot;,
14237 ],
14238 },
14239 },
14240 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
14241 },
14242 },
14243 ],
14244 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
14245 { # Defines a threshold for categorizing time series values.
14246 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
14247 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
14248 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
14249 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
14250 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
14251 },
14252 ],
14253 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
14254 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
14255 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
14256 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
14257 },
14258 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
14259 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
14260 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
14261 },
14262 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
14263 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
14264 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
14265 },
14266 },
14267 },
14268 ],
14269 },
14270 &quot;labels&quot;: { # Labels applied to the dashboard
14271 &quot;a_key&quot;: &quot;A String&quot;,
14272 },
14273 &quot;mosaicLayout&quot;: { # A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid. # The content is arranged as a grid of tiles, with each content widget occupying one or more grid blocks.
14274 &quot;columns&quot;: 42, # The number of columns in the mosaic grid. The number of columns must be between 1 and 48, inclusive.
14275 &quot;tiles&quot;: [ # The tiles to display.
14276 { # A single tile in the mosaic. The placement and size of the tile are configurable.
14277 &quot;height&quot;: 42, # The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
14278 &quot;widget&quot;: { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard. # The informational widget contained in the tile. For example an XyChart.
14279 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
14280 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
14281 },
14282 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
14283 },
14284 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
14285 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
14286 },
14287 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
14288 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
14289 &quot;A String&quot;,
14290 ],
14291 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
14292 &quot;A String&quot;,
14293 ],
14294 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
14295 &quot;A String&quot;,
14296 ],
14297 },
14298 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
14299 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
14300 },
14301 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
14302 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
14303 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
14304 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
14305 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
14306 &quot;a_key&quot;: &quot;A String&quot;,
14307 },
14308 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
14309 },
14310 ],
14311 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
14312 &quot;A String&quot;,
14313 ],
14314 },
14315 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
14316 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
14317 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
14318 &quot;A String&quot;,
14319 ],
14320 },
14321 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
14322 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
14323 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
14324 { # Groups a time series query definition.
14325 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
14326 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
14327 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
14328 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
14329 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
14330 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
14331 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
14332 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
14333 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
14334 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
14335 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
14336 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
14337 },
14338 ],
14339 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
14340 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
14341 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
14342 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14343 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14344 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14345 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14346 },
14347 ],
14348 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14349 },
14350 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
14351 },
14352 ],
14353 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
14354 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
14355 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
14356 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
14357 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
14358 },
14359 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
14360 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
14361 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
14362 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14363 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14364 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14365 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14366 &quot;A String&quot;,
14367 ],
14368 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14369 },
14370 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14371 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14372 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14373 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14374 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14375 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14376 },
14377 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14378 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14379 },
14380 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
14381 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14382 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14383 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14384 &quot;A String&quot;,
14385 ],
14386 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14387 },
14388 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14389 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14390 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14391 },
14392 },
14393 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
14394 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
14395 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14396 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14397 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14398 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14399 &quot;A String&quot;,
14400 ],
14401 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14402 },
14403 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14404 },
14405 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
14406 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14407 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14408 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14409 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14410 &quot;A String&quot;,
14411 ],
14412 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14413 },
14414 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14415 },
14416 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14417 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14418 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14419 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14420 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14421 },
14422 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14423 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14424 },
14425 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
14426 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14427 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14428 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14429 &quot;A String&quot;,
14430 ],
14431 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14432 },
14433 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14434 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14435 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14436 },
14437 },
14438 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
14439 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
14440 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
14441 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
14442 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
14443 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
14444 &quot;A String&quot;,
14445 ],
14446 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
14447 &quot;A String&quot;,
14448 ],
14449 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
14450 &quot;A String&quot;,
14451 ],
14452 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
14453 { # Span attribute key and list of values to be used for filtering.
14454 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
14455 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
14456 &quot;A String&quot;,
14457 ],
14458 },
14459 ],
14460 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
14461 &quot;A String&quot;,
14462 ],
14463 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
14464 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
14465 &quot;A String&quot;,
14466 ],
14467 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
14468 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
14469 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
14470 &quot;A String&quot;,
14471 ],
14472 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
14473 &quot;A String&quot;,
14474 ],
14475 },
14476 },
14477 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
14478 },
14479 },
14480 ],
14481 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
14482 },
14483 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
14484 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
14485 },
14486 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
14487 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
14488 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
14489 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14490 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14491 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14492 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14493 },
14494 ],
14495 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14496 },
14497 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
14498 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
14499 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
14500 },
14501 ],
14502 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
14503 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
14504 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
14505 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
14506 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
14507 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
14508 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
14509 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
14510 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
14511 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
14512 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
14513 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
14514 },
14515 ],
14516 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
14517 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
14518 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
14519 },
14520 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
14521 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
14522 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
14523 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14524 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14525 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14526 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14527 },
14528 ],
14529 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14530 },
14531 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
14532 },
14533 ],
14534 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
14535 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
14536 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
14537 },
14538 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
14539 { # Defines a threshold for categorizing time series values.
14540 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
14541 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
14542 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
14543 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
14544 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
14545 },
14546 ],
14547 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
14548 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
14549 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
14550 },
14551 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
14552 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
14553 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
14554 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14555 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14556 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14557 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14558 &quot;A String&quot;,
14559 ],
14560 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14561 },
14562 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14563 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14564 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14565 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14566 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14567 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14568 },
14569 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14570 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14571 },
14572 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
14573 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14574 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14575 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14576 &quot;A String&quot;,
14577 ],
14578 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14579 },
14580 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14581 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14582 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14583 },
14584 },
14585 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
14586 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
14587 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14588 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14589 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14590 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14591 &quot;A String&quot;,
14592 ],
14593 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14594 },
14595 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14596 },
14597 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
14598 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14599 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14600 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14601 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14602 &quot;A String&quot;,
14603 ],
14604 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14605 },
14606 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14607 },
14608 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14609 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14610 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14611 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14612 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14613 },
14614 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14615 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14616 },
14617 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
14618 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14619 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14620 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14621 &quot;A String&quot;,
14622 ],
14623 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14624 },
14625 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14626 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14627 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14628 },
14629 },
14630 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
14631 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
14632 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
14633 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
14634 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
14635 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
14636 &quot;A String&quot;,
14637 ],
14638 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
14639 &quot;A String&quot;,
14640 ],
14641 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
14642 &quot;A String&quot;,
14643 ],
14644 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
14645 { # Span attribute key and list of values to be used for filtering.
14646 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
14647 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
14648 &quot;A String&quot;,
14649 ],
14650 },
14651 ],
14652 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
14653 &quot;A String&quot;,
14654 ],
14655 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
14656 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
14657 &quot;A String&quot;,
14658 ],
14659 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
14660 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
14661 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
14662 &quot;A String&quot;,
14663 ],
14664 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
14665 &quot;A String&quot;,
14666 ],
14667 },
14668 },
14669 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
14670 },
14671 },
14672 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
14673 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
14674 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
14675 },
14676 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
14677 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
14678 },
14679 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
14680 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
14681 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
14682 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
14683 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
14684 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
14685 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
14686 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
14687 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
14688 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
14689 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
14690 },
14691 },
14692 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
14693 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
14694 { # The persistent settings for a table&#x27;s columns.
14695 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
14696 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
14697 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
14698 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
14699 { # Defines a threshold for categorizing time series values.
14700 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
14701 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
14702 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
14703 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
14704 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
14705 },
14706 ],
14707 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
14708 },
14709 ],
14710 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
14711 { # Groups a time series query definition with table options.
14712 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
14713 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
14714 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
14715 &quot;A String&quot;,
14716 ],
14717 },
14718 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
14719 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
14720 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
14721 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
14722 },
14723 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
14724 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
14725 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
14726 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14727 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14728 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14729 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14730 &quot;A String&quot;,
14731 ],
14732 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14733 },
14734 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14735 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14736 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14737 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14738 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14739 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14740 },
14741 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14742 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14743 },
14744 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
14745 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14746 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14747 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14748 &quot;A String&quot;,
14749 ],
14750 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14751 },
14752 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14753 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14754 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14755 },
14756 },
14757 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
14758 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
14759 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14760 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14761 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14762 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14763 &quot;A String&quot;,
14764 ],
14765 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14766 },
14767 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14768 },
14769 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
14770 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14771 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14772 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14773 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14774 &quot;A String&quot;,
14775 ],
14776 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14777 },
14778 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14779 },
14780 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14781 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14782 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14783 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14784 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14785 },
14786 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14787 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14788 },
14789 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
14790 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14791 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14792 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14793 &quot;A String&quot;,
14794 ],
14795 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14796 },
14797 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14798 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14799 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14800 },
14801 },
14802 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
14803 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
14804 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
14805 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
14806 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
14807 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
14808 &quot;A String&quot;,
14809 ],
14810 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
14811 &quot;A String&quot;,
14812 ],
14813 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
14814 &quot;A String&quot;,
14815 ],
14816 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
14817 { # Span attribute key and list of values to be used for filtering.
14818 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
14819 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
14820 &quot;A String&quot;,
14821 ],
14822 },
14823 ],
14824 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
14825 &quot;A String&quot;,
14826 ],
14827 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
14828 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
14829 &quot;A String&quot;,
14830 ],
14831 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
14832 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
14833 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
14834 &quot;A String&quot;,
14835 ],
14836 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
14837 &quot;A String&quot;,
14838 ],
14839 },
14840 },
14841 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
14842 },
14843 },
14844 ],
14845 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
14846 },
14847 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
14848 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
14849 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
14850 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
14851 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
14852 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
14853 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
14854 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14855 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14856 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14857 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14858 },
14859 ],
14860 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14861 },
14862 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
14863 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
14864 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
14865 },
14866 ],
14867 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
14868 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
14869 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
14870 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
14871 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
14872 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
14873 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
14874 },
14875 ],
14876 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
14877 },
14878 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
14879 },
14880 ],
14881 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
14882 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
14883 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
14884 },
14885 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
14886 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
14887 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
14888 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14889 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14890 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14891 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14892 &quot;A String&quot;,
14893 ],
14894 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14895 },
14896 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14897 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14898 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14899 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14900 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14901 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14902 },
14903 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14904 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14905 },
14906 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
14907 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14908 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14909 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14910 &quot;A String&quot;,
14911 ],
14912 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14913 },
14914 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14915 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14916 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14917 },
14918 },
14919 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
14920 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
14921 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14922 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14923 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14924 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14925 &quot;A String&quot;,
14926 ],
14927 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14928 },
14929 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14930 },
14931 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
14932 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
14933 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14934 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14935 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14936 &quot;A String&quot;,
14937 ],
14938 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14939 },
14940 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
14941 },
14942 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
14943 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
14944 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
14945 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
14946 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
14947 },
14948 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
14949 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
14950 },
14951 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
14952 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
14953 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
14954 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
14955 &quot;A String&quot;,
14956 ],
14957 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
14958 },
14959 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
14960 &quot;numTimeSeries&quot;: 42, # How many time series to output.
14961 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
14962 },
14963 },
14964 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
14965 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
14966 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
14967 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
14968 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
14969 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
14970 &quot;A String&quot;,
14971 ],
14972 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
14973 &quot;A String&quot;,
14974 ],
14975 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
14976 &quot;A String&quot;,
14977 ],
14978 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
14979 { # Span attribute key and list of values to be used for filtering.
14980 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
14981 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
14982 &quot;A String&quot;,
14983 ],
14984 },
14985 ],
14986 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
14987 &quot;A String&quot;,
14988 ],
14989 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
14990 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
14991 &quot;A String&quot;,
14992 ],
14993 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
14994 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
14995 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
14996 &quot;A String&quot;,
14997 ],
14998 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
14999 &quot;A String&quot;,
15000 ],
15001 },
15002 },
15003 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
15004 },
15005 },
15006 ],
15007 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
15008 &quot;A String&quot;,
15009 ],
15010 },
15011 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
15012 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
15013 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
15014 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
15015 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
15016 },
15017 },
15018 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
15019 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
15020 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
15021 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
15022 },
15023 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
15024 { # Groups a time series query definition with charting options.
15025 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
15026 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
15027 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
15028 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15029 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15030 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15031 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15032 },
15033 ],
15034 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15035 },
15036 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
15037 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
15038 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
15039 },
15040 ],
15041 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
15042 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
15043 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
15044 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
15045 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
15046 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
15047 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
15048 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
15049 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
15050 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
15051 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
15052 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
15053 },
15054 ],
15055 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
15056 &quot;measures&quot;: [ # Optional. A collection of measures.
15057 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
15058 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
15059 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15060 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15061 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15062 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15063 },
15064 ],
15065 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15066 },
15067 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
15068 },
15069 ],
15070 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
15071 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
15072 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
15073 { # Data structure to storing column&#x27;s sort strategy
15074 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
15075 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
15076 },
15077 ],
15078 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
15079 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
15080 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
15081 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
15082 },
15083 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
15084 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
15085 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
15086 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15087 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15088 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15089 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15090 &quot;A String&quot;,
15091 ],
15092 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15093 },
15094 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15095 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15096 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15097 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15098 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15099 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15100 },
15101 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15102 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15103 },
15104 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
15105 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15106 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15107 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15108 &quot;A String&quot;,
15109 ],
15110 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15111 },
15112 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15113 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15114 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15115 },
15116 },
15117 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
15118 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
15119 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15120 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15121 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15122 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15123 &quot;A String&quot;,
15124 ],
15125 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15126 },
15127 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15128 },
15129 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
15130 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15131 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15132 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15133 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15134 &quot;A String&quot;,
15135 ],
15136 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15137 },
15138 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15139 },
15140 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15141 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15142 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15143 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15144 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15145 },
15146 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15147 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15148 },
15149 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
15150 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15151 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15152 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15153 &quot;A String&quot;,
15154 ],
15155 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15156 },
15157 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15158 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15159 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15160 },
15161 },
15162 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
15163 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
15164 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
15165 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
15166 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
15167 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
15168 &quot;A String&quot;,
15169 ],
15170 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
15171 &quot;A String&quot;,
15172 ],
15173 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
15174 &quot;A String&quot;,
15175 ],
15176 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
15177 { # Span attribute key and list of values to be used for filtering.
15178 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
15179 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
15180 &quot;A String&quot;,
15181 ],
15182 },
15183 ],
15184 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
15185 &quot;A String&quot;,
15186 ],
15187 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
15188 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
15189 &quot;A String&quot;,
15190 ],
15191 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
15192 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
15193 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
15194 &quot;A String&quot;,
15195 ],
15196 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
15197 &quot;A String&quot;,
15198 ],
15199 },
15200 },
15201 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
15202 },
15203 },
15204 ],
15205 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
15206 { # Defines a threshold for categorizing time series values.
15207 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
15208 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
15209 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
15210 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
15211 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
15212 },
15213 ],
15214 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
15215 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
15216 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
15217 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
15218 },
15219 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
15220 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
15221 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
15222 },
15223 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
15224 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
15225 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
15226 },
15227 },
15228 },
15229 &quot;width&quot;: 42, # The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
15230 &quot;xPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
15231 &quot;yPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
15232 },
15233 ],
15234 },
15235 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dashboard.
15236 &quot;rowLayout&quot;: { # A simplified layout that divides the available space into rows and arranges a set of widgets horizontally in each row. # The content is divided into equally spaced rows and the widgets are arranged horizontally.
15237 &quot;rows&quot;: [ # The rows of content to display.
15238 { # Defines the layout properties and content for a row.
15239 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.
15240 &quot;widgets&quot;: [ # The display widgets arranged horizontally in this row.
15241 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
15242 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
15243 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
15244 },
15245 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
15246 },
15247 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
15248 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
15249 },
15250 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
15251 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
15252 &quot;A String&quot;,
15253 ],
15254 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
15255 &quot;A String&quot;,
15256 ],
15257 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
15258 &quot;A String&quot;,
15259 ],
15260 },
15261 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
15262 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
15263 },
15264 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
15265 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
15266 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
15267 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
15268 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
15269 &quot;a_key&quot;: &quot;A String&quot;,
15270 },
15271 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
15272 },
15273 ],
15274 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
15275 &quot;A String&quot;,
15276 ],
15277 },
15278 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
15279 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
15280 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
15281 &quot;A String&quot;,
15282 ],
15283 },
15284 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
15285 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
15286 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
15287 { # Groups a time series query definition.
15288 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
15289 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
15290 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
15291 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
15292 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
15293 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
15294 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
15295 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
15296 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
15297 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
15298 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
15299 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
15300 },
15301 ],
15302 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
15303 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
15304 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
15305 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15306 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15307 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15308 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15309 },
15310 ],
15311 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15312 },
15313 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
15314 },
15315 ],
15316 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
15317 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
15318 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
15319 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
15320 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
15321 },
15322 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
15323 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
15324 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
15325 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15326 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15327 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15328 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15329 &quot;A String&quot;,
15330 ],
15331 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15332 },
15333 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15334 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15335 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15336 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15337 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15338 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15339 },
15340 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15341 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15342 },
15343 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
15344 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15345 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15346 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15347 &quot;A String&quot;,
15348 ],
15349 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15350 },
15351 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15352 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15353 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15354 },
15355 },
15356 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
15357 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
15358 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15359 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15360 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15361 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15362 &quot;A String&quot;,
15363 ],
15364 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15365 },
15366 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15367 },
15368 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
15369 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15370 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15371 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15372 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15373 &quot;A String&quot;,
15374 ],
15375 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15376 },
15377 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15378 },
15379 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15380 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15381 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15382 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15383 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15384 },
15385 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15386 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15387 },
15388 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
15389 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15390 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15391 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15392 &quot;A String&quot;,
15393 ],
15394 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15395 },
15396 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15397 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15398 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15399 },
15400 },
15401 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
15402 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
15403 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
15404 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
15405 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
15406 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
15407 &quot;A String&quot;,
15408 ],
15409 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
15410 &quot;A String&quot;,
15411 ],
15412 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
15413 &quot;A String&quot;,
15414 ],
15415 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
15416 { # Span attribute key and list of values to be used for filtering.
15417 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
15418 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
15419 &quot;A String&quot;,
15420 ],
15421 },
15422 ],
15423 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
15424 &quot;A String&quot;,
15425 ],
15426 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
15427 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
15428 &quot;A String&quot;,
15429 ],
15430 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
15431 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
15432 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
15433 &quot;A String&quot;,
15434 ],
15435 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
15436 &quot;A String&quot;,
15437 ],
15438 },
15439 },
15440 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
15441 },
15442 },
15443 ],
15444 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
15445 },
15446 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
15447 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
15448 },
15449 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
15450 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
15451 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
15452 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15453 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15454 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15455 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15456 },
15457 ],
15458 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15459 },
15460 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
15461 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
15462 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
15463 },
15464 ],
15465 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
15466 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
15467 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
15468 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
15469 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
15470 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
15471 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
15472 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
15473 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
15474 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
15475 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
15476 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
15477 },
15478 ],
15479 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
15480 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
15481 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
15482 },
15483 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
15484 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
15485 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
15486 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15487 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15488 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15489 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15490 },
15491 ],
15492 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15493 },
15494 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
15495 },
15496 ],
15497 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
15498 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
15499 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
15500 },
15501 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
15502 { # Defines a threshold for categorizing time series values.
15503 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
15504 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
15505 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
15506 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
15507 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
15508 },
15509 ],
15510 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
15511 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
15512 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
15513 },
15514 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
15515 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
15516 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
15517 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15518 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15519 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15520 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15521 &quot;A String&quot;,
15522 ],
15523 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15524 },
15525 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15526 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15527 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15528 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15529 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15530 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15531 },
15532 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15533 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15534 },
15535 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
15536 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15537 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15538 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15539 &quot;A String&quot;,
15540 ],
15541 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15542 },
15543 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15544 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15545 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15546 },
15547 },
15548 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
15549 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
15550 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15551 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15552 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15553 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15554 &quot;A String&quot;,
15555 ],
15556 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15557 },
15558 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15559 },
15560 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
15561 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15562 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15563 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15564 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15565 &quot;A String&quot;,
15566 ],
15567 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15568 },
15569 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15570 },
15571 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15572 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15573 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15574 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15575 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15576 },
15577 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15578 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15579 },
15580 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
15581 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15582 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15583 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15584 &quot;A String&quot;,
15585 ],
15586 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15587 },
15588 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15589 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15590 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15591 },
15592 },
15593 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
15594 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
15595 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
15596 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
15597 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
15598 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
15599 &quot;A String&quot;,
15600 ],
15601 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
15602 &quot;A String&quot;,
15603 ],
15604 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
15605 &quot;A String&quot;,
15606 ],
15607 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
15608 { # Span attribute key and list of values to be used for filtering.
15609 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
15610 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
15611 &quot;A String&quot;,
15612 ],
15613 },
15614 ],
15615 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
15616 &quot;A String&quot;,
15617 ],
15618 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
15619 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
15620 &quot;A String&quot;,
15621 ],
15622 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
15623 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
15624 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
15625 &quot;A String&quot;,
15626 ],
15627 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
15628 &quot;A String&quot;,
15629 ],
15630 },
15631 },
15632 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
15633 },
15634 },
15635 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
15636 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
15637 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
15638 },
15639 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
15640 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
15641 },
15642 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
15643 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
15644 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
15645 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
15646 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
15647 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
15648 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
15649 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
15650 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
15651 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
15652 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
15653 },
15654 },
15655 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
15656 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
15657 { # The persistent settings for a table&#x27;s columns.
15658 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
15659 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
15660 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
15661 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
15662 { # Defines a threshold for categorizing time series values.
15663 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
15664 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
15665 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
15666 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
15667 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
15668 },
15669 ],
15670 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
15671 },
15672 ],
15673 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
15674 { # Groups a time series query definition with table options.
15675 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
15676 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
15677 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
15678 &quot;A String&quot;,
15679 ],
15680 },
15681 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
15682 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
15683 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
15684 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
15685 },
15686 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
15687 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
15688 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
15689 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15690 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15691 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15692 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15693 &quot;A String&quot;,
15694 ],
15695 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15696 },
15697 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15698 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15699 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15700 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15701 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15702 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15703 },
15704 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15705 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15706 },
15707 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
15708 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15709 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15710 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15711 &quot;A String&quot;,
15712 ],
15713 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15714 },
15715 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15716 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15717 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15718 },
15719 },
15720 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
15721 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
15722 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15723 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15724 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15725 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15726 &quot;A String&quot;,
15727 ],
15728 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15729 },
15730 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15731 },
15732 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
15733 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15734 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15735 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15736 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15737 &quot;A String&quot;,
15738 ],
15739 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15740 },
15741 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15742 },
15743 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15744 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15745 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15746 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15747 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15748 },
15749 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15750 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15751 },
15752 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
15753 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15754 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15755 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15756 &quot;A String&quot;,
15757 ],
15758 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15759 },
15760 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15761 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15762 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15763 },
15764 },
15765 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
15766 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
15767 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
15768 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
15769 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
15770 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
15771 &quot;A String&quot;,
15772 ],
15773 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
15774 &quot;A String&quot;,
15775 ],
15776 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
15777 &quot;A String&quot;,
15778 ],
15779 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
15780 { # Span attribute key and list of values to be used for filtering.
15781 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
15782 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
15783 &quot;A String&quot;,
15784 ],
15785 },
15786 ],
15787 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
15788 &quot;A String&quot;,
15789 ],
15790 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
15791 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
15792 &quot;A String&quot;,
15793 ],
15794 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
15795 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
15796 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
15797 &quot;A String&quot;,
15798 ],
15799 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
15800 &quot;A String&quot;,
15801 ],
15802 },
15803 },
15804 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
15805 },
15806 },
15807 ],
15808 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
15809 },
15810 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
15811 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
15812 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
15813 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
15814 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
15815 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
15816 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
15817 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15818 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15819 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15820 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15821 },
15822 ],
15823 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15824 },
15825 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
15826 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
15827 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
15828 },
15829 ],
15830 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
15831 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
15832 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
15833 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15834 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15835 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15836 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15837 },
15838 ],
15839 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15840 },
15841 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
15842 },
15843 ],
15844 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
15845 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
15846 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
15847 },
15848 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
15849 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
15850 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
15851 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15852 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15853 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15854 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15855 &quot;A String&quot;,
15856 ],
15857 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15858 },
15859 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15860 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15861 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15862 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15863 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15864 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15865 },
15866 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15867 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15868 },
15869 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
15870 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15871 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15872 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15873 &quot;A String&quot;,
15874 ],
15875 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15876 },
15877 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15878 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15879 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15880 },
15881 },
15882 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
15883 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
15884 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15885 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15886 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15887 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15888 &quot;A String&quot;,
15889 ],
15890 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15891 },
15892 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15893 },
15894 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
15895 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
15896 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15897 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15898 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15899 &quot;A String&quot;,
15900 ],
15901 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15902 },
15903 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
15904 },
15905 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
15906 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
15907 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
15908 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
15909 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
15910 },
15911 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
15912 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
15913 },
15914 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
15915 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
15916 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
15917 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
15918 &quot;A String&quot;,
15919 ],
15920 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
15921 },
15922 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
15923 &quot;numTimeSeries&quot;: 42, # How many time series to output.
15924 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
15925 },
15926 },
15927 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
15928 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
15929 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
15930 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
15931 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
15932 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
15933 &quot;A String&quot;,
15934 ],
15935 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
15936 &quot;A String&quot;,
15937 ],
15938 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
15939 &quot;A String&quot;,
15940 ],
15941 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
15942 { # Span attribute key and list of values to be used for filtering.
15943 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
15944 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
15945 &quot;A String&quot;,
15946 ],
15947 },
15948 ],
15949 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
15950 &quot;A String&quot;,
15951 ],
15952 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
15953 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
15954 &quot;A String&quot;,
15955 ],
15956 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
15957 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
15958 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
15959 &quot;A String&quot;,
15960 ],
15961 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
15962 &quot;A String&quot;,
15963 ],
15964 },
15965 },
15966 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
15967 },
15968 },
15969 ],
15970 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
15971 &quot;A String&quot;,
15972 ],
15973 },
15974 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
15975 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
15976 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
15977 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
15978 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
15979 },
15980 },
15981 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
15982 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
15983 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
15984 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
15985 },
15986 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
15987 { # Groups a time series query definition with charting options.
15988 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
15989 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
15990 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
15991 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
15992 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
15993 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
15994 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
15995 },
15996 ],
15997 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
15998 },
15999 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
16000 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
16001 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
16002 },
16003 ],
16004 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
16005 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
16006 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
16007 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
16008 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
16009 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
16010 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
16011 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
16012 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
16013 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
16014 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
16015 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
16016 },
16017 ],
16018 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
16019 &quot;measures&quot;: [ # Optional. A collection of measures.
16020 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
16021 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
16022 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16023 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16024 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
16025 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
16026 },
16027 ],
16028 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
16029 },
16030 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
16031 },
16032 ],
16033 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
16034 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
16035 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
16036 { # Data structure to storing column&#x27;s sort strategy
16037 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
16038 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
16039 },
16040 ],
16041 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
16042 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
16043 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
16044 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
16045 },
16046 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
16047 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
16048 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
16049 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16050 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16051 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16052 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16053 &quot;A String&quot;,
16054 ],
16055 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16056 },
16057 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16058 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16059 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16060 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16061 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16062 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16063 },
16064 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16065 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16066 },
16067 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
16068 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16069 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16070 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16071 &quot;A String&quot;,
16072 ],
16073 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16074 },
16075 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16076 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16077 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16078 },
16079 },
16080 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
16081 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
16082 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16083 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16084 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16085 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16086 &quot;A String&quot;,
16087 ],
16088 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16089 },
16090 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16091 },
16092 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
16093 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16094 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16095 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16096 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16097 &quot;A String&quot;,
16098 ],
16099 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16100 },
16101 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16102 },
16103 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16104 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16105 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16106 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16107 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16108 },
16109 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16110 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16111 },
16112 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
16113 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16114 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16115 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16116 &quot;A String&quot;,
16117 ],
16118 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16119 },
16120 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16121 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16122 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16123 },
16124 },
16125 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
16126 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
16127 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
16128 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
16129 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
16130 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
16131 &quot;A String&quot;,
16132 ],
16133 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
16134 &quot;A String&quot;,
16135 ],
16136 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
16137 &quot;A String&quot;,
16138 ],
16139 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
16140 { # Span attribute key and list of values to be used for filtering.
16141 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
16142 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
16143 &quot;A String&quot;,
16144 ],
16145 },
16146 ],
16147 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
16148 &quot;A String&quot;,
16149 ],
16150 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
16151 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
16152 &quot;A String&quot;,
16153 ],
16154 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
16155 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
16156 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
16157 &quot;A String&quot;,
16158 ],
16159 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
16160 &quot;A String&quot;,
16161 ],
16162 },
16163 },
16164 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
16165 },
16166 },
16167 ],
16168 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
16169 { # Defines a threshold for categorizing time series values.
16170 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
16171 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
16172 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
16173 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
16174 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
16175 },
16176 ],
16177 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
16178 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
16179 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
16180 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
16181 },
16182 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
16183 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
16184 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
16185 },
16186 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
16187 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
16188 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
16189 },
16190 },
16191 },
16192 ],
16193 },
16194 ],
16195 },
16196 },
16197 ],
16198 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as page_token in the next call to this method.
16199 }</pre>
16200 </div>
16201
16202 <div class="method">
16203 <code class="details" id="list_next">list_next()</code>
16204 <pre>Retrieves the next page of results.
16205
16206 Args:
16207 previous_request: The request for the previous page. (required)
16208 previous_response: The response from the request for the previous page. (required)
16209
16210 Returns:
16211 A request object that you can call &#x27;execute()&#x27; on to request the next
16212 page. Returns None if there are no more items in the collection.
16213 </pre>
16214 </div>
16215
16216 <div class="method">
16217 <code class="details" id="patch">patch(name, body=None, validateOnly=None, x__xgafv=None)</code>
16218 <pre>Replaces an existing custom dashboard with a new definition.This method requires the monitoring.dashboards.update permission on the specified dashboard. For more information, see Cloud Identity and Access Management (https://cloud.google.com/iam).
16219
16220 Args:
16221 name: string, Identifier. The resource name of the dashboard. (required)
16222 body: object, The request body.
16223 The object takes the form of:
16224
16225 { # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
16226 &quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
16227 &quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
16228 &quot;A String&quot;,
16229 ],
16230 &quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
16231 { # Annotation configuration for one event type on a dashboard
16232 &quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
16233 &quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
16234 &quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
16235 &quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
16236 &quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
16237 &quot;A String&quot;,
16238 ],
16239 },
16240 ],
16241 },
16242 &quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
16243 &quot;columns&quot;: [ # The columns of content to display.
16244 { # Defines the layout properties and content for a column.
16245 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this column. The column weight is used to adjust the width of columns on the screen (relative to peers). Greater the weight, greater the width of the column on the screen. If omitted, a value of 1 is used while rendering.
16246 &quot;widgets&quot;: [ # The display widgets arranged vertically in this column.
16247 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
16248 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
16249 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
16250 },
16251 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
16252 },
16253 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
16254 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
16255 },
16256 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
16257 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
16258 &quot;A String&quot;,
16259 ],
16260 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
16261 &quot;A String&quot;,
16262 ],
16263 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
16264 &quot;A String&quot;,
16265 ],
16266 },
16267 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
16268 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
16269 },
16270 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
16271 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
16272 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
16273 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
16274 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
16275 &quot;a_key&quot;: &quot;A String&quot;,
16276 },
16277 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
16278 },
16279 ],
16280 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
16281 &quot;A String&quot;,
16282 ],
16283 },
16284 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
16285 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
16286 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
16287 &quot;A String&quot;,
16288 ],
16289 },
16290 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
16291 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
16292 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
16293 { # Groups a time series query definition.
16294 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
16295 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
16296 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
16297 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
16298 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
16299 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
16300 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
16301 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
16302 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
16303 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
16304 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
16305 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
16306 },
16307 ],
16308 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
16309 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
16310 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
16311 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16312 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16313 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
16314 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
16315 },
16316 ],
16317 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
16318 },
16319 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
16320 },
16321 ],
16322 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
16323 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
16324 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
16325 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
16326 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
16327 },
16328 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
16329 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
16330 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
16331 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16332 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16333 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16334 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16335 &quot;A String&quot;,
16336 ],
16337 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16338 },
16339 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16340 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16341 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16342 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16343 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16344 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16345 },
16346 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16347 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16348 },
16349 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
16350 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16351 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16352 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16353 &quot;A String&quot;,
16354 ],
16355 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16356 },
16357 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16358 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16359 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16360 },
16361 },
16362 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
16363 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
16364 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16365 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16366 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16367 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16368 &quot;A String&quot;,
16369 ],
16370 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16371 },
16372 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16373 },
16374 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
16375 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16376 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16377 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16378 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16379 &quot;A String&quot;,
16380 ],
16381 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16382 },
16383 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16384 },
16385 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16386 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16387 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16388 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16389 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16390 },
16391 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16392 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16393 },
16394 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
16395 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16396 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16397 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16398 &quot;A String&quot;,
16399 ],
16400 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16401 },
16402 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16403 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16404 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16405 },
16406 },
16407 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
16408 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
16409 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
16410 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
16411 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
16412 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
16413 &quot;A String&quot;,
16414 ],
16415 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
16416 &quot;A String&quot;,
16417 ],
16418 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
16419 &quot;A String&quot;,
16420 ],
16421 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
16422 { # Span attribute key and list of values to be used for filtering.
16423 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
16424 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
16425 &quot;A String&quot;,
16426 ],
16427 },
16428 ],
16429 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
16430 &quot;A String&quot;,
16431 ],
16432 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
16433 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
16434 &quot;A String&quot;,
16435 ],
16436 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
16437 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
16438 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
16439 &quot;A String&quot;,
16440 ],
16441 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
16442 &quot;A String&quot;,
16443 ],
16444 },
16445 },
16446 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
16447 },
16448 },
16449 ],
16450 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
16451 },
16452 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
16453 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
16454 },
16455 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
16456 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
16457 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
16458 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16459 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16460 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
16461 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
16462 },
16463 ],
16464 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
16465 },
16466 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
16467 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
16468 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
16469 },
16470 ],
16471 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
16472 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
16473 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
16474 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
16475 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
16476 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
16477 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
16478 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
16479 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
16480 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
16481 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
16482 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
16483 },
16484 ],
16485 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
16486 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
16487 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
16488 },
16489 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
16490 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
16491 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
16492 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16493 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16494 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
16495 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
16496 },
16497 ],
16498 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
16499 },
16500 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
16501 },
16502 ],
16503 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
16504 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
16505 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
16506 },
16507 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
16508 { # Defines a threshold for categorizing time series values.
16509 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
16510 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
16511 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
16512 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
16513 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
16514 },
16515 ],
16516 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
16517 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
16518 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
16519 },
16520 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
16521 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
16522 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
16523 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16524 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16525 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16526 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16527 &quot;A String&quot;,
16528 ],
16529 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16530 },
16531 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16532 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16533 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16534 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16535 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16536 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16537 },
16538 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16539 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16540 },
16541 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
16542 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16543 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16544 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16545 &quot;A String&quot;,
16546 ],
16547 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16548 },
16549 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16550 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16551 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16552 },
16553 },
16554 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
16555 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
16556 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16557 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16558 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16559 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16560 &quot;A String&quot;,
16561 ],
16562 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16563 },
16564 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16565 },
16566 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
16567 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16568 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16569 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16570 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16571 &quot;A String&quot;,
16572 ],
16573 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16574 },
16575 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16576 },
16577 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16578 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16579 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16580 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16581 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16582 },
16583 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16584 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16585 },
16586 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
16587 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16588 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16589 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16590 &quot;A String&quot;,
16591 ],
16592 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16593 },
16594 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16595 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16596 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16597 },
16598 },
16599 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
16600 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
16601 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
16602 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
16603 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
16604 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
16605 &quot;A String&quot;,
16606 ],
16607 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
16608 &quot;A String&quot;,
16609 ],
16610 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
16611 &quot;A String&quot;,
16612 ],
16613 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
16614 { # Span attribute key and list of values to be used for filtering.
16615 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
16616 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
16617 &quot;A String&quot;,
16618 ],
16619 },
16620 ],
16621 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
16622 &quot;A String&quot;,
16623 ],
16624 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
16625 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
16626 &quot;A String&quot;,
16627 ],
16628 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
16629 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
16630 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
16631 &quot;A String&quot;,
16632 ],
16633 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
16634 &quot;A String&quot;,
16635 ],
16636 },
16637 },
16638 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
16639 },
16640 },
16641 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
16642 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
16643 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
16644 },
16645 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
16646 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
16647 },
16648 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
16649 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
16650 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
16651 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
16652 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
16653 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
16654 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
16655 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
16656 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
16657 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
16658 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
16659 },
16660 },
16661 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
16662 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
16663 { # The persistent settings for a table&#x27;s columns.
16664 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
16665 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
16666 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
16667 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
16668 { # Defines a threshold for categorizing time series values.
16669 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
16670 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
16671 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
16672 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
16673 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
16674 },
16675 ],
16676 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
16677 },
16678 ],
16679 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
16680 { # Groups a time series query definition with table options.
16681 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
16682 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
16683 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
16684 &quot;A String&quot;,
16685 ],
16686 },
16687 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
16688 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
16689 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
16690 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
16691 },
16692 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
16693 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
16694 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
16695 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16696 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16697 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16698 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16699 &quot;A String&quot;,
16700 ],
16701 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16702 },
16703 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16704 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16705 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16706 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16707 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16708 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16709 },
16710 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16711 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16712 },
16713 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
16714 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16715 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16716 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16717 &quot;A String&quot;,
16718 ],
16719 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16720 },
16721 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16722 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16723 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16724 },
16725 },
16726 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
16727 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
16728 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16729 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16730 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16731 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16732 &quot;A String&quot;,
16733 ],
16734 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16735 },
16736 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16737 },
16738 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
16739 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16740 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16741 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16742 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16743 &quot;A String&quot;,
16744 ],
16745 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16746 },
16747 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16748 },
16749 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16750 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16751 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16752 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16753 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16754 },
16755 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16756 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16757 },
16758 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
16759 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16760 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16761 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16762 &quot;A String&quot;,
16763 ],
16764 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16765 },
16766 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16767 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16768 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16769 },
16770 },
16771 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
16772 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
16773 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
16774 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
16775 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
16776 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
16777 &quot;A String&quot;,
16778 ],
16779 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
16780 &quot;A String&quot;,
16781 ],
16782 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
16783 &quot;A String&quot;,
16784 ],
16785 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
16786 { # Span attribute key and list of values to be used for filtering.
16787 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
16788 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
16789 &quot;A String&quot;,
16790 ],
16791 },
16792 ],
16793 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
16794 &quot;A String&quot;,
16795 ],
16796 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
16797 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
16798 &quot;A String&quot;,
16799 ],
16800 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
16801 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
16802 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
16803 &quot;A String&quot;,
16804 ],
16805 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
16806 &quot;A String&quot;,
16807 ],
16808 },
16809 },
16810 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
16811 },
16812 },
16813 ],
16814 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
16815 },
16816 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
16817 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
16818 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
16819 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
16820 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
16821 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
16822 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
16823 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16824 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16825 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
16826 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
16827 },
16828 ],
16829 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
16830 },
16831 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
16832 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
16833 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
16834 },
16835 ],
16836 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
16837 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
16838 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
16839 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16840 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16841 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
16842 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
16843 },
16844 ],
16845 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
16846 },
16847 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
16848 },
16849 ],
16850 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
16851 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
16852 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
16853 },
16854 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
16855 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
16856 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
16857 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16858 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16859 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16860 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16861 &quot;A String&quot;,
16862 ],
16863 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16864 },
16865 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16866 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16867 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16868 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16869 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16870 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16871 },
16872 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16873 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16874 },
16875 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
16876 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16877 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16878 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16879 &quot;A String&quot;,
16880 ],
16881 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16882 },
16883 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16884 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16885 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16886 },
16887 },
16888 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
16889 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
16890 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16891 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16892 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16893 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16894 &quot;A String&quot;,
16895 ],
16896 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16897 },
16898 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16899 },
16900 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
16901 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
16902 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16903 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16904 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16905 &quot;A String&quot;,
16906 ],
16907 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16908 },
16909 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
16910 },
16911 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
16912 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
16913 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
16914 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
16915 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
16916 },
16917 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
16918 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
16919 },
16920 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
16921 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
16922 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
16923 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
16924 &quot;A String&quot;,
16925 ],
16926 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
16927 },
16928 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
16929 &quot;numTimeSeries&quot;: 42, # How many time series to output.
16930 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
16931 },
16932 },
16933 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
16934 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
16935 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
16936 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
16937 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
16938 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
16939 &quot;A String&quot;,
16940 ],
16941 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
16942 &quot;A String&quot;,
16943 ],
16944 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
16945 &quot;A String&quot;,
16946 ],
16947 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
16948 { # Span attribute key and list of values to be used for filtering.
16949 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
16950 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
16951 &quot;A String&quot;,
16952 ],
16953 },
16954 ],
16955 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
16956 &quot;A String&quot;,
16957 ],
16958 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
16959 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
16960 &quot;A String&quot;,
16961 ],
16962 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
16963 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
16964 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
16965 &quot;A String&quot;,
16966 ],
16967 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
16968 &quot;A String&quot;,
16969 ],
16970 },
16971 },
16972 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
16973 },
16974 },
16975 ],
16976 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
16977 &quot;A String&quot;,
16978 ],
16979 },
16980 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
16981 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
16982 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
16983 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
16984 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
16985 },
16986 },
16987 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
16988 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
16989 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
16990 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
16991 },
16992 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
16993 { # Groups a time series query definition with charting options.
16994 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
16995 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
16996 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
16997 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
16998 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
16999 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17000 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17001 },
17002 ],
17003 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17004 },
17005 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
17006 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
17007 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
17008 },
17009 ],
17010 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
17011 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
17012 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
17013 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
17014 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
17015 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
17016 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
17017 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
17018 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
17019 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
17020 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
17021 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
17022 },
17023 ],
17024 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
17025 &quot;measures&quot;: [ # Optional. A collection of measures.
17026 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
17027 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
17028 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
17029 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
17030 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17031 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17032 },
17033 ],
17034 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17035 },
17036 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
17037 },
17038 ],
17039 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
17040 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
17041 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
17042 { # Data structure to storing column&#x27;s sort strategy
17043 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
17044 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
17045 },
17046 ],
17047 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
17048 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
17049 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
17050 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
17051 },
17052 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
17053 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
17054 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
17055 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17056 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17057 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17058 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17059 &quot;A String&quot;,
17060 ],
17061 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17062 },
17063 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17064 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17065 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17066 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17067 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17068 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17069 },
17070 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17071 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17072 },
17073 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
17074 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17075 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17076 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17077 &quot;A String&quot;,
17078 ],
17079 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17080 },
17081 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17082 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17083 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17084 },
17085 },
17086 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
17087 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
17088 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17089 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17090 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17091 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17092 &quot;A String&quot;,
17093 ],
17094 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17095 },
17096 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17097 },
17098 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
17099 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17100 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17101 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17102 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17103 &quot;A String&quot;,
17104 ],
17105 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17106 },
17107 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17108 },
17109 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17110 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17111 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17112 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17113 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17114 },
17115 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17116 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17117 },
17118 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
17119 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17120 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17121 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17122 &quot;A String&quot;,
17123 ],
17124 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17125 },
17126 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17127 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17128 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17129 },
17130 },
17131 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
17132 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
17133 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
17134 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
17135 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
17136 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
17137 &quot;A String&quot;,
17138 ],
17139 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
17140 &quot;A String&quot;,
17141 ],
17142 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
17143 &quot;A String&quot;,
17144 ],
17145 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
17146 { # Span attribute key and list of values to be used for filtering.
17147 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
17148 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
17149 &quot;A String&quot;,
17150 ],
17151 },
17152 ],
17153 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
17154 &quot;A String&quot;,
17155 ],
17156 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
17157 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
17158 &quot;A String&quot;,
17159 ],
17160 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
17161 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
17162 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
17163 &quot;A String&quot;,
17164 ],
17165 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
17166 &quot;A String&quot;,
17167 ],
17168 },
17169 },
17170 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
17171 },
17172 },
17173 ],
17174 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
17175 { # Defines a threshold for categorizing time series values.
17176 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
17177 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
17178 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
17179 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
17180 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
17181 },
17182 ],
17183 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
17184 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
17185 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
17186 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
17187 },
17188 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
17189 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
17190 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
17191 },
17192 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
17193 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
17194 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
17195 },
17196 },
17197 },
17198 ],
17199 },
17200 ],
17201 },
17202 &quot;dashboardFilters&quot;: [ # Filters to reduce the amount of data charted based on the filter criteria.
17203 { # A filter to reduce the amount of data charted in relevant widgets.
17204 &quot;filterType&quot;: &quot;A String&quot;, # The specified filter type
17205 &quot;labelKey&quot;: &quot;A String&quot;, # Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.
17206 &quot;stringArray&quot;: { # An array of strings # A list of possible string values for the filter
17207 &quot;values&quot;: [ # The values of the array
17208 &quot;A String&quot;,
17209 ],
17210 },
17211 &quot;stringArrayValue&quot;: { # An array of strings # An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED
17212 &quot;values&quot;: [ # The values of the array
17213 &quot;A String&quot;,
17214 ],
17215 },
17216 &quot;stringValue&quot;: &quot;A String&quot;, # A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED
17217 &quot;templateVariable&quot;: &quot;A String&quot;, # The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.
17218 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported
17219 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
17220 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
17221 },
17222 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
17223 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
17224 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
17225 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17226 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17227 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17228 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17229 &quot;A String&quot;,
17230 ],
17231 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17232 },
17233 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17234 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17235 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17236 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17237 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17238 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17239 },
17240 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17241 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17242 },
17243 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
17244 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17245 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17246 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17247 &quot;A String&quot;,
17248 ],
17249 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17250 },
17251 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17252 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17253 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17254 },
17255 },
17256 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
17257 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
17258 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17259 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17260 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17261 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17262 &quot;A String&quot;,
17263 ],
17264 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17265 },
17266 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17267 },
17268 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
17269 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17270 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17271 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17272 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17273 &quot;A String&quot;,
17274 ],
17275 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17276 },
17277 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17278 },
17279 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17280 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17281 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17282 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17283 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17284 },
17285 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17286 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17287 },
17288 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
17289 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17290 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17291 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17292 &quot;A String&quot;,
17293 ],
17294 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17295 },
17296 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17297 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17298 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17299 },
17300 },
17301 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
17302 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
17303 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
17304 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
17305 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
17306 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
17307 &quot;A String&quot;,
17308 ],
17309 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
17310 &quot;A String&quot;,
17311 ],
17312 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
17313 &quot;A String&quot;,
17314 ],
17315 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
17316 { # Span attribute key and list of values to be used for filtering.
17317 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
17318 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
17319 &quot;A String&quot;,
17320 ],
17321 },
17322 ],
17323 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
17324 &quot;A String&quot;,
17325 ],
17326 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
17327 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
17328 &quot;A String&quot;,
17329 ],
17330 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
17331 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
17332 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
17333 &quot;A String&quot;,
17334 ],
17335 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
17336 &quot;A String&quot;,
17337 ],
17338 },
17339 },
17340 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
17341 },
17342 &quot;valueType&quot;: &quot;A String&quot;, # The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.
17343 },
17344 ],
17345 &quot;displayName&quot;: &quot;A String&quot;, # Required. The mutable, human-readable name.
17346 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. An etag is returned in the response to GetDashboard, and users are expected to put that etag in the request to UpdateDashboard to ensure that their change will be applied to the same version of the Dashboard configuration. The field should not be passed during dashboard creation.
17347 &quot;gridLayout&quot;: { # A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy. # Content is arranged with a basic layout that re-flows a simple list of informational elements like widgets or tiles.
17348 &quot;columns&quot;: &quot;A String&quot;, # The number of columns into which the view&#x27;s width is divided. If omitted or set to zero, a system default will be used while rendering.
17349 &quot;widgets&quot;: [ # The informational elements that are arranged into the columns row-first.
17350 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
17351 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
17352 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
17353 },
17354 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
17355 },
17356 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
17357 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
17358 },
17359 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
17360 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
17361 &quot;A String&quot;,
17362 ],
17363 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
17364 &quot;A String&quot;,
17365 ],
17366 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
17367 &quot;A String&quot;,
17368 ],
17369 },
17370 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
17371 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
17372 },
17373 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
17374 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
17375 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
17376 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
17377 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
17378 &quot;a_key&quot;: &quot;A String&quot;,
17379 },
17380 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
17381 },
17382 ],
17383 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
17384 &quot;A String&quot;,
17385 ],
17386 },
17387 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
17388 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
17389 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
17390 &quot;A String&quot;,
17391 ],
17392 },
17393 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
17394 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
17395 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
17396 { # Groups a time series query definition.
17397 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
17398 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
17399 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
17400 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
17401 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
17402 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
17403 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
17404 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
17405 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
17406 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
17407 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
17408 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
17409 },
17410 ],
17411 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
17412 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
17413 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
17414 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
17415 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
17416 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17417 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17418 },
17419 ],
17420 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17421 },
17422 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
17423 },
17424 ],
17425 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
17426 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
17427 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
17428 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
17429 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
17430 },
17431 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
17432 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
17433 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
17434 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17435 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17436 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17437 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17438 &quot;A String&quot;,
17439 ],
17440 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17441 },
17442 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17443 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17444 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17445 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17446 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17447 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17448 },
17449 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17450 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17451 },
17452 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
17453 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17454 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17455 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17456 &quot;A String&quot;,
17457 ],
17458 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17459 },
17460 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17461 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17462 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17463 },
17464 },
17465 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
17466 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
17467 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17468 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17469 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17470 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17471 &quot;A String&quot;,
17472 ],
17473 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17474 },
17475 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17476 },
17477 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
17478 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17479 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17480 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17481 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17482 &quot;A String&quot;,
17483 ],
17484 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17485 },
17486 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17487 },
17488 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17489 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17490 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17491 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17492 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17493 },
17494 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17495 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17496 },
17497 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
17498 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17499 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17500 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17501 &quot;A String&quot;,
17502 ],
17503 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17504 },
17505 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17506 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17507 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17508 },
17509 },
17510 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
17511 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
17512 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
17513 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
17514 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
17515 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
17516 &quot;A String&quot;,
17517 ],
17518 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
17519 &quot;A String&quot;,
17520 ],
17521 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
17522 &quot;A String&quot;,
17523 ],
17524 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
17525 { # Span attribute key and list of values to be used for filtering.
17526 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
17527 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
17528 &quot;A String&quot;,
17529 ],
17530 },
17531 ],
17532 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
17533 &quot;A String&quot;,
17534 ],
17535 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
17536 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
17537 &quot;A String&quot;,
17538 ],
17539 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
17540 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
17541 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
17542 &quot;A String&quot;,
17543 ],
17544 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
17545 &quot;A String&quot;,
17546 ],
17547 },
17548 },
17549 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
17550 },
17551 },
17552 ],
17553 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
17554 },
17555 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
17556 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
17557 },
17558 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
17559 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
17560 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
17561 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
17562 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
17563 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17564 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17565 },
17566 ],
17567 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17568 },
17569 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
17570 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
17571 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
17572 },
17573 ],
17574 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
17575 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
17576 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
17577 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
17578 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
17579 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
17580 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
17581 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
17582 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
17583 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
17584 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
17585 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
17586 },
17587 ],
17588 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
17589 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
17590 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
17591 },
17592 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
17593 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
17594 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
17595 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
17596 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
17597 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17598 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17599 },
17600 ],
17601 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17602 },
17603 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
17604 },
17605 ],
17606 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
17607 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
17608 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
17609 },
17610 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
17611 { # Defines a threshold for categorizing time series values.
17612 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
17613 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
17614 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
17615 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
17616 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
17617 },
17618 ],
17619 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
17620 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
17621 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
17622 },
17623 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
17624 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
17625 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
17626 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17627 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17628 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17629 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17630 &quot;A String&quot;,
17631 ],
17632 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17633 },
17634 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17635 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17636 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17637 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17638 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17639 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17640 },
17641 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17642 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17643 },
17644 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
17645 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17646 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17647 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17648 &quot;A String&quot;,
17649 ],
17650 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17651 },
17652 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17653 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17654 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17655 },
17656 },
17657 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
17658 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
17659 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17660 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17661 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17662 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17663 &quot;A String&quot;,
17664 ],
17665 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17666 },
17667 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17668 },
17669 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
17670 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17671 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17672 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17673 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17674 &quot;A String&quot;,
17675 ],
17676 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17677 },
17678 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17679 },
17680 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17681 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17682 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17683 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17684 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17685 },
17686 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17687 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17688 },
17689 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
17690 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17691 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17692 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17693 &quot;A String&quot;,
17694 ],
17695 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17696 },
17697 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17698 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17699 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17700 },
17701 },
17702 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
17703 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
17704 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
17705 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
17706 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
17707 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
17708 &quot;A String&quot;,
17709 ],
17710 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
17711 &quot;A String&quot;,
17712 ],
17713 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
17714 &quot;A String&quot;,
17715 ],
17716 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
17717 { # Span attribute key and list of values to be used for filtering.
17718 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
17719 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
17720 &quot;A String&quot;,
17721 ],
17722 },
17723 ],
17724 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
17725 &quot;A String&quot;,
17726 ],
17727 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
17728 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
17729 &quot;A String&quot;,
17730 ],
17731 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
17732 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
17733 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
17734 &quot;A String&quot;,
17735 ],
17736 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
17737 &quot;A String&quot;,
17738 ],
17739 },
17740 },
17741 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
17742 },
17743 },
17744 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
17745 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
17746 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
17747 },
17748 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
17749 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
17750 },
17751 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
17752 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
17753 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
17754 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
17755 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
17756 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
17757 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
17758 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
17759 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
17760 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
17761 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
17762 },
17763 },
17764 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
17765 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
17766 { # The persistent settings for a table&#x27;s columns.
17767 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
17768 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
17769 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
17770 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
17771 { # Defines a threshold for categorizing time series values.
17772 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
17773 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
17774 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
17775 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
17776 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
17777 },
17778 ],
17779 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
17780 },
17781 ],
17782 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
17783 { # Groups a time series query definition with table options.
17784 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
17785 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
17786 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
17787 &quot;A String&quot;,
17788 ],
17789 },
17790 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
17791 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
17792 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
17793 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
17794 },
17795 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
17796 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
17797 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
17798 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17799 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17800 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17801 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17802 &quot;A String&quot;,
17803 ],
17804 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17805 },
17806 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17807 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17808 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17809 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17810 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17811 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17812 },
17813 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17814 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17815 },
17816 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
17817 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17818 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17819 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17820 &quot;A String&quot;,
17821 ],
17822 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17823 },
17824 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17825 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17826 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17827 },
17828 },
17829 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
17830 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
17831 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17832 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17833 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17834 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17835 &quot;A String&quot;,
17836 ],
17837 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17838 },
17839 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17840 },
17841 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
17842 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17843 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17844 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17845 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17846 &quot;A String&quot;,
17847 ],
17848 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17849 },
17850 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17851 },
17852 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17853 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17854 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17855 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17856 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17857 },
17858 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17859 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17860 },
17861 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
17862 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17863 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17864 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17865 &quot;A String&quot;,
17866 ],
17867 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17868 },
17869 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17870 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17871 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17872 },
17873 },
17874 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
17875 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
17876 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
17877 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
17878 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
17879 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
17880 &quot;A String&quot;,
17881 ],
17882 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
17883 &quot;A String&quot;,
17884 ],
17885 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
17886 &quot;A String&quot;,
17887 ],
17888 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
17889 { # Span attribute key and list of values to be used for filtering.
17890 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
17891 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
17892 &quot;A String&quot;,
17893 ],
17894 },
17895 ],
17896 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
17897 &quot;A String&quot;,
17898 ],
17899 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
17900 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
17901 &quot;A String&quot;,
17902 ],
17903 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
17904 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
17905 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
17906 &quot;A String&quot;,
17907 ],
17908 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
17909 &quot;A String&quot;,
17910 ],
17911 },
17912 },
17913 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
17914 },
17915 },
17916 ],
17917 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
17918 },
17919 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
17920 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
17921 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
17922 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
17923 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
17924 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
17925 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
17926 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
17927 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
17928 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17929 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17930 },
17931 ],
17932 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17933 },
17934 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
17935 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
17936 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
17937 },
17938 ],
17939 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
17940 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
17941 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
17942 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
17943 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
17944 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
17945 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
17946 },
17947 ],
17948 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
17949 },
17950 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
17951 },
17952 ],
17953 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
17954 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
17955 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
17956 },
17957 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
17958 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
17959 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
17960 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17961 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17962 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17963 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17964 &quot;A String&quot;,
17965 ],
17966 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17967 },
17968 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
17969 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
17970 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
17971 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
17972 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
17973 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
17974 },
17975 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
17976 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
17977 },
17978 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
17979 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17980 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17981 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17982 &quot;A String&quot;,
17983 ],
17984 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
17985 },
17986 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
17987 &quot;numTimeSeries&quot;: 42, # How many time series to output.
17988 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
17989 },
17990 },
17991 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
17992 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
17993 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
17994 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
17995 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
17996 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
17997 &quot;A String&quot;,
17998 ],
17999 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18000 },
18001 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18002 },
18003 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
18004 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18005 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18006 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18007 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18008 &quot;A String&quot;,
18009 ],
18010 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18011 },
18012 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18013 },
18014 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18015 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18016 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18017 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18018 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18019 },
18020 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18021 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18022 },
18023 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
18024 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18025 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18026 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18027 &quot;A String&quot;,
18028 ],
18029 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18030 },
18031 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18032 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18033 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18034 },
18035 },
18036 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
18037 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
18038 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
18039 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
18040 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
18041 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
18042 &quot;A String&quot;,
18043 ],
18044 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
18045 &quot;A String&quot;,
18046 ],
18047 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
18048 &quot;A String&quot;,
18049 ],
18050 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
18051 { # Span attribute key and list of values to be used for filtering.
18052 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
18053 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
18054 &quot;A String&quot;,
18055 ],
18056 },
18057 ],
18058 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
18059 &quot;A String&quot;,
18060 ],
18061 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
18062 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
18063 &quot;A String&quot;,
18064 ],
18065 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
18066 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
18067 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
18068 &quot;A String&quot;,
18069 ],
18070 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
18071 &quot;A String&quot;,
18072 ],
18073 },
18074 },
18075 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
18076 },
18077 },
18078 ],
18079 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
18080 &quot;A String&quot;,
18081 ],
18082 },
18083 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
18084 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
18085 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
18086 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
18087 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
18088 },
18089 },
18090 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
18091 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
18092 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
18093 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
18094 },
18095 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
18096 { # Groups a time series query definition with charting options.
18097 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
18098 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
18099 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
18100 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18101 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18102 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18103 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18104 },
18105 ],
18106 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18107 },
18108 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
18109 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
18110 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
18111 },
18112 ],
18113 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
18114 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
18115 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
18116 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
18117 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
18118 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
18119 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
18120 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
18121 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
18122 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
18123 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
18124 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
18125 },
18126 ],
18127 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
18128 &quot;measures&quot;: [ # Optional. A collection of measures.
18129 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
18130 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
18131 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18132 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18133 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18134 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18135 },
18136 ],
18137 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18138 },
18139 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
18140 },
18141 ],
18142 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
18143 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
18144 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
18145 { # Data structure to storing column&#x27;s sort strategy
18146 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
18147 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
18148 },
18149 ],
18150 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
18151 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
18152 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
18153 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
18154 },
18155 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
18156 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
18157 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
18158 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18159 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18160 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18161 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18162 &quot;A String&quot;,
18163 ],
18164 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18165 },
18166 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18167 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18168 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18169 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18170 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18171 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18172 },
18173 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18174 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18175 },
18176 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
18177 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18178 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18179 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18180 &quot;A String&quot;,
18181 ],
18182 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18183 },
18184 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18185 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18186 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18187 },
18188 },
18189 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
18190 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
18191 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18192 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18193 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18194 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18195 &quot;A String&quot;,
18196 ],
18197 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18198 },
18199 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18200 },
18201 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
18202 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18203 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18204 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18205 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18206 &quot;A String&quot;,
18207 ],
18208 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18209 },
18210 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18211 },
18212 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18213 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18214 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18215 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18216 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18217 },
18218 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18219 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18220 },
18221 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
18222 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18223 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18224 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18225 &quot;A String&quot;,
18226 ],
18227 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18228 },
18229 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18230 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18231 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18232 },
18233 },
18234 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
18235 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
18236 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
18237 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
18238 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
18239 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
18240 &quot;A String&quot;,
18241 ],
18242 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
18243 &quot;A String&quot;,
18244 ],
18245 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
18246 &quot;A String&quot;,
18247 ],
18248 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
18249 { # Span attribute key and list of values to be used for filtering.
18250 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
18251 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
18252 &quot;A String&quot;,
18253 ],
18254 },
18255 ],
18256 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
18257 &quot;A String&quot;,
18258 ],
18259 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
18260 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
18261 &quot;A String&quot;,
18262 ],
18263 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
18264 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
18265 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
18266 &quot;A String&quot;,
18267 ],
18268 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
18269 &quot;A String&quot;,
18270 ],
18271 },
18272 },
18273 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
18274 },
18275 },
18276 ],
18277 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
18278 { # Defines a threshold for categorizing time series values.
18279 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
18280 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
18281 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
18282 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
18283 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
18284 },
18285 ],
18286 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
18287 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
18288 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
18289 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
18290 },
18291 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
18292 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
18293 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
18294 },
18295 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
18296 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
18297 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
18298 },
18299 },
18300 },
18301 ],
18302 },
18303 &quot;labels&quot;: { # Labels applied to the dashboard
18304 &quot;a_key&quot;: &quot;A String&quot;,
18305 },
18306 &quot;mosaicLayout&quot;: { # A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid. # The content is arranged as a grid of tiles, with each content widget occupying one or more grid blocks.
18307 &quot;columns&quot;: 42, # The number of columns in the mosaic grid. The number of columns must be between 1 and 48, inclusive.
18308 &quot;tiles&quot;: [ # The tiles to display.
18309 { # A single tile in the mosaic. The placement and size of the tile are configurable.
18310 &quot;height&quot;: 42, # The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
18311 &quot;widget&quot;: { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard. # The informational widget contained in the tile. For example an XyChart.
18312 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
18313 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
18314 },
18315 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
18316 },
18317 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
18318 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
18319 },
18320 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
18321 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
18322 &quot;A String&quot;,
18323 ],
18324 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
18325 &quot;A String&quot;,
18326 ],
18327 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
18328 &quot;A String&quot;,
18329 ],
18330 },
18331 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
18332 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
18333 },
18334 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
18335 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
18336 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
18337 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
18338 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
18339 &quot;a_key&quot;: &quot;A String&quot;,
18340 },
18341 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
18342 },
18343 ],
18344 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
18345 &quot;A String&quot;,
18346 ],
18347 },
18348 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
18349 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
18350 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
18351 &quot;A String&quot;,
18352 ],
18353 },
18354 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
18355 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
18356 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
18357 { # Groups a time series query definition.
18358 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
18359 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
18360 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
18361 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
18362 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
18363 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
18364 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
18365 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
18366 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
18367 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
18368 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
18369 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
18370 },
18371 ],
18372 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
18373 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
18374 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
18375 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18376 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18377 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18378 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18379 },
18380 ],
18381 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18382 },
18383 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
18384 },
18385 ],
18386 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
18387 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
18388 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
18389 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
18390 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
18391 },
18392 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
18393 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
18394 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
18395 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18396 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18397 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18398 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18399 &quot;A String&quot;,
18400 ],
18401 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18402 },
18403 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18404 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18405 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18406 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18407 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18408 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18409 },
18410 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18411 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18412 },
18413 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
18414 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18415 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18416 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18417 &quot;A String&quot;,
18418 ],
18419 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18420 },
18421 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18422 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18423 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18424 },
18425 },
18426 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
18427 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
18428 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18429 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18430 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18431 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18432 &quot;A String&quot;,
18433 ],
18434 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18435 },
18436 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18437 },
18438 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
18439 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18440 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18441 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18442 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18443 &quot;A String&quot;,
18444 ],
18445 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18446 },
18447 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18448 },
18449 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18450 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18451 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18452 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18453 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18454 },
18455 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18456 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18457 },
18458 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
18459 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18460 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18461 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18462 &quot;A String&quot;,
18463 ],
18464 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18465 },
18466 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18467 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18468 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18469 },
18470 },
18471 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
18472 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
18473 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
18474 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
18475 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
18476 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
18477 &quot;A String&quot;,
18478 ],
18479 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
18480 &quot;A String&quot;,
18481 ],
18482 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
18483 &quot;A String&quot;,
18484 ],
18485 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
18486 { # Span attribute key and list of values to be used for filtering.
18487 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
18488 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
18489 &quot;A String&quot;,
18490 ],
18491 },
18492 ],
18493 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
18494 &quot;A String&quot;,
18495 ],
18496 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
18497 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
18498 &quot;A String&quot;,
18499 ],
18500 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
18501 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
18502 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
18503 &quot;A String&quot;,
18504 ],
18505 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
18506 &quot;A String&quot;,
18507 ],
18508 },
18509 },
18510 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
18511 },
18512 },
18513 ],
18514 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
18515 },
18516 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
18517 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
18518 },
18519 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
18520 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
18521 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
18522 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18523 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18524 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18525 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18526 },
18527 ],
18528 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18529 },
18530 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
18531 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
18532 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
18533 },
18534 ],
18535 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
18536 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
18537 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
18538 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
18539 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
18540 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
18541 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
18542 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
18543 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
18544 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
18545 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
18546 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
18547 },
18548 ],
18549 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
18550 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
18551 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
18552 },
18553 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
18554 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
18555 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
18556 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18557 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18558 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18559 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18560 },
18561 ],
18562 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18563 },
18564 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
18565 },
18566 ],
18567 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
18568 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
18569 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
18570 },
18571 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
18572 { # Defines a threshold for categorizing time series values.
18573 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
18574 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
18575 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
18576 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
18577 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
18578 },
18579 ],
18580 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
18581 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
18582 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
18583 },
18584 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
18585 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
18586 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
18587 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18588 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18589 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18590 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18591 &quot;A String&quot;,
18592 ],
18593 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18594 },
18595 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18596 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18597 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18598 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18599 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18600 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18601 },
18602 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18603 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18604 },
18605 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
18606 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18607 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18608 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18609 &quot;A String&quot;,
18610 ],
18611 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18612 },
18613 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18614 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18615 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18616 },
18617 },
18618 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
18619 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
18620 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18621 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18622 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18623 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18624 &quot;A String&quot;,
18625 ],
18626 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18627 },
18628 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18629 },
18630 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
18631 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18632 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18633 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18634 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18635 &quot;A String&quot;,
18636 ],
18637 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18638 },
18639 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18640 },
18641 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18642 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18643 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18644 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18645 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18646 },
18647 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18648 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18649 },
18650 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
18651 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18652 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18653 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18654 &quot;A String&quot;,
18655 ],
18656 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18657 },
18658 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18659 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18660 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18661 },
18662 },
18663 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
18664 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
18665 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
18666 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
18667 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
18668 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
18669 &quot;A String&quot;,
18670 ],
18671 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
18672 &quot;A String&quot;,
18673 ],
18674 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
18675 &quot;A String&quot;,
18676 ],
18677 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
18678 { # Span attribute key and list of values to be used for filtering.
18679 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
18680 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
18681 &quot;A String&quot;,
18682 ],
18683 },
18684 ],
18685 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
18686 &quot;A String&quot;,
18687 ],
18688 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
18689 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
18690 &quot;A String&quot;,
18691 ],
18692 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
18693 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
18694 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
18695 &quot;A String&quot;,
18696 ],
18697 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
18698 &quot;A String&quot;,
18699 ],
18700 },
18701 },
18702 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
18703 },
18704 },
18705 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
18706 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
18707 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
18708 },
18709 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
18710 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
18711 },
18712 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
18713 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
18714 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
18715 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
18716 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
18717 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
18718 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
18719 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
18720 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
18721 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
18722 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
18723 },
18724 },
18725 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
18726 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
18727 { # The persistent settings for a table&#x27;s columns.
18728 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
18729 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
18730 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
18731 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
18732 { # Defines a threshold for categorizing time series values.
18733 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
18734 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
18735 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
18736 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
18737 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
18738 },
18739 ],
18740 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
18741 },
18742 ],
18743 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
18744 { # Groups a time series query definition with table options.
18745 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
18746 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
18747 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
18748 &quot;A String&quot;,
18749 ],
18750 },
18751 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
18752 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
18753 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
18754 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
18755 },
18756 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
18757 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
18758 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
18759 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18760 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18761 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18762 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18763 &quot;A String&quot;,
18764 ],
18765 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18766 },
18767 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18768 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18769 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18770 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18771 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18772 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18773 },
18774 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18775 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18776 },
18777 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
18778 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18779 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18780 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18781 &quot;A String&quot;,
18782 ],
18783 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18784 },
18785 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18786 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18787 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18788 },
18789 },
18790 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
18791 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
18792 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18793 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18794 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18795 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18796 &quot;A String&quot;,
18797 ],
18798 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18799 },
18800 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18801 },
18802 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
18803 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18804 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18805 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18806 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18807 &quot;A String&quot;,
18808 ],
18809 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18810 },
18811 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18812 },
18813 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18814 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18815 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18816 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18817 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18818 },
18819 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18820 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18821 },
18822 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
18823 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18824 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18825 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18826 &quot;A String&quot;,
18827 ],
18828 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18829 },
18830 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18831 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18832 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18833 },
18834 },
18835 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
18836 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
18837 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
18838 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
18839 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
18840 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
18841 &quot;A String&quot;,
18842 ],
18843 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
18844 &quot;A String&quot;,
18845 ],
18846 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
18847 &quot;A String&quot;,
18848 ],
18849 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
18850 { # Span attribute key and list of values to be used for filtering.
18851 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
18852 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
18853 &quot;A String&quot;,
18854 ],
18855 },
18856 ],
18857 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
18858 &quot;A String&quot;,
18859 ],
18860 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
18861 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
18862 &quot;A String&quot;,
18863 ],
18864 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
18865 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
18866 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
18867 &quot;A String&quot;,
18868 ],
18869 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
18870 &quot;A String&quot;,
18871 ],
18872 },
18873 },
18874 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
18875 },
18876 },
18877 ],
18878 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
18879 },
18880 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
18881 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
18882 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
18883 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
18884 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
18885 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
18886 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
18887 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18888 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18889 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18890 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18891 },
18892 ],
18893 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18894 },
18895 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
18896 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
18897 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
18898 },
18899 ],
18900 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
18901 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
18902 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
18903 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
18904 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
18905 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
18906 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
18907 },
18908 ],
18909 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
18910 },
18911 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
18912 },
18913 ],
18914 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
18915 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
18916 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
18917 },
18918 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
18919 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
18920 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
18921 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18922 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18923 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18924 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18925 &quot;A String&quot;,
18926 ],
18927 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18928 },
18929 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18930 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18931 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18932 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18933 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18934 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18935 },
18936 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18937 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18938 },
18939 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
18940 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18941 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18942 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18943 &quot;A String&quot;,
18944 ],
18945 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18946 },
18947 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18948 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18949 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18950 },
18951 },
18952 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
18953 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
18954 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18955 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18956 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18957 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18958 &quot;A String&quot;,
18959 ],
18960 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18961 },
18962 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18963 },
18964 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
18965 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
18966 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18967 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18968 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18969 &quot;A String&quot;,
18970 ],
18971 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18972 },
18973 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
18974 },
18975 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
18976 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
18977 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
18978 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
18979 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
18980 },
18981 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
18982 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
18983 },
18984 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
18985 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
18986 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
18987 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
18988 &quot;A String&quot;,
18989 ],
18990 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
18991 },
18992 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
18993 &quot;numTimeSeries&quot;: 42, # How many time series to output.
18994 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
18995 },
18996 },
18997 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
18998 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
18999 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
19000 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
19001 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
19002 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
19003 &quot;A String&quot;,
19004 ],
19005 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
19006 &quot;A String&quot;,
19007 ],
19008 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
19009 &quot;A String&quot;,
19010 ],
19011 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
19012 { # Span attribute key and list of values to be used for filtering.
19013 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
19014 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
19015 &quot;A String&quot;,
19016 ],
19017 },
19018 ],
19019 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
19020 &quot;A String&quot;,
19021 ],
19022 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
19023 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
19024 &quot;A String&quot;,
19025 ],
19026 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
19027 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
19028 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
19029 &quot;A String&quot;,
19030 ],
19031 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
19032 &quot;A String&quot;,
19033 ],
19034 },
19035 },
19036 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
19037 },
19038 },
19039 ],
19040 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
19041 &quot;A String&quot;,
19042 ],
19043 },
19044 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
19045 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
19046 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
19047 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
19048 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
19049 },
19050 },
19051 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
19052 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
19053 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
19054 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
19055 },
19056 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
19057 { # Groups a time series query definition with charting options.
19058 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
19059 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
19060 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
19061 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19062 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19063 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19064 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19065 },
19066 ],
19067 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19068 },
19069 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
19070 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
19071 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
19072 },
19073 ],
19074 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
19075 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
19076 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
19077 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
19078 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
19079 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
19080 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
19081 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
19082 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
19083 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
19084 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
19085 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
19086 },
19087 ],
19088 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
19089 &quot;measures&quot;: [ # Optional. A collection of measures.
19090 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
19091 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
19092 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19093 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19094 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19095 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19096 },
19097 ],
19098 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19099 },
19100 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
19101 },
19102 ],
19103 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
19104 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
19105 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
19106 { # Data structure to storing column&#x27;s sort strategy
19107 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
19108 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
19109 },
19110 ],
19111 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
19112 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
19113 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
19114 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
19115 },
19116 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
19117 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
19118 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
19119 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19120 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19121 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19122 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19123 &quot;A String&quot;,
19124 ],
19125 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19126 },
19127 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19128 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19129 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19130 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19131 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19132 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19133 },
19134 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19135 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19136 },
19137 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
19138 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19139 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19140 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19141 &quot;A String&quot;,
19142 ],
19143 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19144 },
19145 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19146 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19147 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19148 },
19149 },
19150 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
19151 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
19152 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19153 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19154 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19155 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19156 &quot;A String&quot;,
19157 ],
19158 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19159 },
19160 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19161 },
19162 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
19163 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19164 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19165 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19166 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19167 &quot;A String&quot;,
19168 ],
19169 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19170 },
19171 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19172 },
19173 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19174 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19175 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19176 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19177 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19178 },
19179 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19180 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19181 },
19182 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
19183 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19184 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19185 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19186 &quot;A String&quot;,
19187 ],
19188 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19189 },
19190 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19191 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19192 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19193 },
19194 },
19195 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
19196 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
19197 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
19198 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
19199 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
19200 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
19201 &quot;A String&quot;,
19202 ],
19203 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
19204 &quot;A String&quot;,
19205 ],
19206 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
19207 &quot;A String&quot;,
19208 ],
19209 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
19210 { # Span attribute key and list of values to be used for filtering.
19211 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
19212 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
19213 &quot;A String&quot;,
19214 ],
19215 },
19216 ],
19217 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
19218 &quot;A String&quot;,
19219 ],
19220 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
19221 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
19222 &quot;A String&quot;,
19223 ],
19224 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
19225 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
19226 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
19227 &quot;A String&quot;,
19228 ],
19229 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
19230 &quot;A String&quot;,
19231 ],
19232 },
19233 },
19234 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
19235 },
19236 },
19237 ],
19238 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
19239 { # Defines a threshold for categorizing time series values.
19240 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
19241 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
19242 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
19243 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
19244 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
19245 },
19246 ],
19247 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
19248 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
19249 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
19250 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
19251 },
19252 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
19253 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
19254 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
19255 },
19256 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
19257 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
19258 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
19259 },
19260 },
19261 },
19262 &quot;width&quot;: 42, # The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
19263 &quot;xPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
19264 &quot;yPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
19265 },
19266 ],
19267 },
19268 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dashboard.
19269 &quot;rowLayout&quot;: { # A simplified layout that divides the available space into rows and arranges a set of widgets horizontally in each row. # The content is divided into equally spaced rows and the widgets are arranged horizontally.
19270 &quot;rows&quot;: [ # The rows of content to display.
19271 { # Defines the layout properties and content for a row.
19272 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.
19273 &quot;widgets&quot;: [ # The display widgets arranged horizontally in this row.
19274 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
19275 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
19276 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
19277 },
19278 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
19279 },
19280 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
19281 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
19282 },
19283 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
19284 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
19285 &quot;A String&quot;,
19286 ],
19287 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
19288 &quot;A String&quot;,
19289 ],
19290 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
19291 &quot;A String&quot;,
19292 ],
19293 },
19294 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
19295 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
19296 },
19297 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
19298 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
19299 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
19300 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
19301 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
19302 &quot;a_key&quot;: &quot;A String&quot;,
19303 },
19304 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
19305 },
19306 ],
19307 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
19308 &quot;A String&quot;,
19309 ],
19310 },
19311 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
19312 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
19313 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
19314 &quot;A String&quot;,
19315 ],
19316 },
19317 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
19318 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
19319 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
19320 { # Groups a time series query definition.
19321 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
19322 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
19323 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
19324 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
19325 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
19326 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
19327 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
19328 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
19329 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
19330 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
19331 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
19332 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
19333 },
19334 ],
19335 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
19336 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
19337 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
19338 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19339 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19340 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19341 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19342 },
19343 ],
19344 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19345 },
19346 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
19347 },
19348 ],
19349 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
19350 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
19351 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
19352 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
19353 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
19354 },
19355 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
19356 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
19357 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
19358 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19359 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19360 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19361 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19362 &quot;A String&quot;,
19363 ],
19364 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19365 },
19366 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19367 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19368 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19369 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19370 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19371 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19372 },
19373 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19374 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19375 },
19376 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
19377 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19378 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19379 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19380 &quot;A String&quot;,
19381 ],
19382 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19383 },
19384 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19385 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19386 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19387 },
19388 },
19389 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
19390 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
19391 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19392 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19393 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19394 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19395 &quot;A String&quot;,
19396 ],
19397 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19398 },
19399 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19400 },
19401 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
19402 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19403 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19404 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19405 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19406 &quot;A String&quot;,
19407 ],
19408 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19409 },
19410 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19411 },
19412 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19413 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19414 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19415 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19416 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19417 },
19418 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19419 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19420 },
19421 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
19422 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19423 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19424 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19425 &quot;A String&quot;,
19426 ],
19427 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19428 },
19429 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19430 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19431 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19432 },
19433 },
19434 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
19435 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
19436 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
19437 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
19438 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
19439 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
19440 &quot;A String&quot;,
19441 ],
19442 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
19443 &quot;A String&quot;,
19444 ],
19445 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
19446 &quot;A String&quot;,
19447 ],
19448 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
19449 { # Span attribute key and list of values to be used for filtering.
19450 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
19451 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
19452 &quot;A String&quot;,
19453 ],
19454 },
19455 ],
19456 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
19457 &quot;A String&quot;,
19458 ],
19459 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
19460 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
19461 &quot;A String&quot;,
19462 ],
19463 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
19464 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
19465 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
19466 &quot;A String&quot;,
19467 ],
19468 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
19469 &quot;A String&quot;,
19470 ],
19471 },
19472 },
19473 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
19474 },
19475 },
19476 ],
19477 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
19478 },
19479 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
19480 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
19481 },
19482 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
19483 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
19484 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
19485 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19486 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19487 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19488 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19489 },
19490 ],
19491 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19492 },
19493 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
19494 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
19495 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
19496 },
19497 ],
19498 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
19499 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
19500 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
19501 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
19502 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
19503 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
19504 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
19505 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
19506 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
19507 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
19508 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
19509 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
19510 },
19511 ],
19512 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
19513 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
19514 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
19515 },
19516 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
19517 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
19518 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
19519 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19520 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19521 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19522 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19523 },
19524 ],
19525 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19526 },
19527 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
19528 },
19529 ],
19530 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
19531 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
19532 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
19533 },
19534 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
19535 { # Defines a threshold for categorizing time series values.
19536 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
19537 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
19538 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
19539 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
19540 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
19541 },
19542 ],
19543 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
19544 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
19545 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
19546 },
19547 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
19548 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
19549 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
19550 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19551 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19552 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19553 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19554 &quot;A String&quot;,
19555 ],
19556 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19557 },
19558 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19559 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19560 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19561 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19562 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19563 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19564 },
19565 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19566 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19567 },
19568 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
19569 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19570 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19571 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19572 &quot;A String&quot;,
19573 ],
19574 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19575 },
19576 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19577 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19578 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19579 },
19580 },
19581 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
19582 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
19583 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19584 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19585 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19586 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19587 &quot;A String&quot;,
19588 ],
19589 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19590 },
19591 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19592 },
19593 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
19594 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19595 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19596 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19597 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19598 &quot;A String&quot;,
19599 ],
19600 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19601 },
19602 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19603 },
19604 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19605 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19606 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19607 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19608 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19609 },
19610 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19611 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19612 },
19613 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
19614 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19615 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19616 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19617 &quot;A String&quot;,
19618 ],
19619 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19620 },
19621 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19622 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19623 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19624 },
19625 },
19626 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
19627 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
19628 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
19629 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
19630 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
19631 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
19632 &quot;A String&quot;,
19633 ],
19634 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
19635 &quot;A String&quot;,
19636 ],
19637 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
19638 &quot;A String&quot;,
19639 ],
19640 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
19641 { # Span attribute key and list of values to be used for filtering.
19642 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
19643 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
19644 &quot;A String&quot;,
19645 ],
19646 },
19647 ],
19648 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
19649 &quot;A String&quot;,
19650 ],
19651 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
19652 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
19653 &quot;A String&quot;,
19654 ],
19655 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
19656 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
19657 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
19658 &quot;A String&quot;,
19659 ],
19660 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
19661 &quot;A String&quot;,
19662 ],
19663 },
19664 },
19665 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
19666 },
19667 },
19668 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
19669 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
19670 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
19671 },
19672 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
19673 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
19674 },
19675 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
19676 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
19677 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
19678 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
19679 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
19680 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
19681 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
19682 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
19683 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
19684 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
19685 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
19686 },
19687 },
19688 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
19689 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
19690 { # The persistent settings for a table&#x27;s columns.
19691 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
19692 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
19693 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
19694 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
19695 { # Defines a threshold for categorizing time series values.
19696 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
19697 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
19698 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
19699 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
19700 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
19701 },
19702 ],
19703 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
19704 },
19705 ],
19706 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
19707 { # Groups a time series query definition with table options.
19708 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
19709 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
19710 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
19711 &quot;A String&quot;,
19712 ],
19713 },
19714 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
19715 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
19716 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
19717 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
19718 },
19719 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
19720 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
19721 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
19722 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19723 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19724 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19725 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19726 &quot;A String&quot;,
19727 ],
19728 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19729 },
19730 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19731 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19732 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19733 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19734 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19735 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19736 },
19737 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19738 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19739 },
19740 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
19741 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19742 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19743 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19744 &quot;A String&quot;,
19745 ],
19746 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19747 },
19748 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19749 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19750 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19751 },
19752 },
19753 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
19754 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
19755 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19756 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19757 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19758 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19759 &quot;A String&quot;,
19760 ],
19761 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19762 },
19763 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19764 },
19765 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
19766 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19767 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19768 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19769 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19770 &quot;A String&quot;,
19771 ],
19772 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19773 },
19774 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19775 },
19776 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19777 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19778 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19779 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19780 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19781 },
19782 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19783 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19784 },
19785 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
19786 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19787 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19788 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19789 &quot;A String&quot;,
19790 ],
19791 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19792 },
19793 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19794 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19795 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19796 },
19797 },
19798 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
19799 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
19800 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
19801 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
19802 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
19803 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
19804 &quot;A String&quot;,
19805 ],
19806 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
19807 &quot;A String&quot;,
19808 ],
19809 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
19810 &quot;A String&quot;,
19811 ],
19812 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
19813 { # Span attribute key and list of values to be used for filtering.
19814 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
19815 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
19816 &quot;A String&quot;,
19817 ],
19818 },
19819 ],
19820 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
19821 &quot;A String&quot;,
19822 ],
19823 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
19824 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
19825 &quot;A String&quot;,
19826 ],
19827 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
19828 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
19829 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
19830 &quot;A String&quot;,
19831 ],
19832 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
19833 &quot;A String&quot;,
19834 ],
19835 },
19836 },
19837 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
19838 },
19839 },
19840 ],
19841 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
19842 },
19843 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
19844 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
19845 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
19846 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
19847 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
19848 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
19849 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
19850 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19851 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19852 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19853 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19854 },
19855 ],
19856 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19857 },
19858 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
19859 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
19860 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
19861 },
19862 ],
19863 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
19864 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
19865 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
19866 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
19867 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
19868 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
19869 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
19870 },
19871 ],
19872 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
19873 },
19874 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
19875 },
19876 ],
19877 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
19878 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
19879 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
19880 },
19881 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
19882 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
19883 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
19884 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19885 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19886 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19887 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19888 &quot;A String&quot;,
19889 ],
19890 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19891 },
19892 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19893 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19894 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19895 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19896 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19897 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19898 },
19899 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19900 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19901 },
19902 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
19903 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19904 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19905 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19906 &quot;A String&quot;,
19907 ],
19908 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19909 },
19910 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19911 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19912 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19913 },
19914 },
19915 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
19916 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
19917 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19918 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19919 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19920 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19921 &quot;A String&quot;,
19922 ],
19923 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19924 },
19925 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19926 },
19927 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
19928 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
19929 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19930 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19931 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19932 &quot;A String&quot;,
19933 ],
19934 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19935 },
19936 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
19937 },
19938 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
19939 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
19940 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
19941 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
19942 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
19943 },
19944 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
19945 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
19946 },
19947 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
19948 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
19949 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
19950 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
19951 &quot;A String&quot;,
19952 ],
19953 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
19954 },
19955 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
19956 &quot;numTimeSeries&quot;: 42, # How many time series to output.
19957 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
19958 },
19959 },
19960 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
19961 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
19962 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
19963 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
19964 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
19965 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
19966 &quot;A String&quot;,
19967 ],
19968 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
19969 &quot;A String&quot;,
19970 ],
19971 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
19972 &quot;A String&quot;,
19973 ],
19974 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
19975 { # Span attribute key and list of values to be used for filtering.
19976 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
19977 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
19978 &quot;A String&quot;,
19979 ],
19980 },
19981 ],
19982 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
19983 &quot;A String&quot;,
19984 ],
19985 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
19986 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
19987 &quot;A String&quot;,
19988 ],
19989 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
19990 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
19991 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
19992 &quot;A String&quot;,
19993 ],
19994 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
19995 &quot;A String&quot;,
19996 ],
19997 },
19998 },
19999 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
20000 },
20001 },
20002 ],
20003 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
20004 &quot;A String&quot;,
20005 ],
20006 },
20007 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
20008 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
20009 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
20010 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
20011 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
20012 },
20013 },
20014 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
20015 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
20016 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
20017 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
20018 },
20019 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
20020 { # Groups a time series query definition with charting options.
20021 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
20022 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
20023 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
20024 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20025 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20026 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20027 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20028 },
20029 ],
20030 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20031 },
20032 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
20033 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
20034 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
20035 },
20036 ],
20037 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
20038 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
20039 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
20040 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
20041 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
20042 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
20043 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
20044 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
20045 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
20046 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
20047 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
20048 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
20049 },
20050 ],
20051 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
20052 &quot;measures&quot;: [ # Optional. A collection of measures.
20053 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
20054 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
20055 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20056 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20057 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20058 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20059 },
20060 ],
20061 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20062 },
20063 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
20064 },
20065 ],
20066 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
20067 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
20068 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
20069 { # Data structure to storing column&#x27;s sort strategy
20070 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
20071 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
20072 },
20073 ],
20074 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
20075 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
20076 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
20077 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
20078 },
20079 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
20080 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
20081 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
20082 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20083 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20084 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20085 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20086 &quot;A String&quot;,
20087 ],
20088 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20089 },
20090 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20091 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20092 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20093 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20094 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20095 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20096 },
20097 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20098 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20099 },
20100 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
20101 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20102 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20103 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20104 &quot;A String&quot;,
20105 ],
20106 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20107 },
20108 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20109 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20110 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20111 },
20112 },
20113 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
20114 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
20115 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20116 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20117 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20118 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20119 &quot;A String&quot;,
20120 ],
20121 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20122 },
20123 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20124 },
20125 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
20126 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20127 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20128 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20129 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20130 &quot;A String&quot;,
20131 ],
20132 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20133 },
20134 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20135 },
20136 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20137 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20138 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20139 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20140 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20141 },
20142 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20143 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20144 },
20145 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
20146 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20147 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20148 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20149 &quot;A String&quot;,
20150 ],
20151 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20152 },
20153 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20154 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20155 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20156 },
20157 },
20158 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
20159 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
20160 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
20161 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
20162 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
20163 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
20164 &quot;A String&quot;,
20165 ],
20166 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
20167 &quot;A String&quot;,
20168 ],
20169 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
20170 &quot;A String&quot;,
20171 ],
20172 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
20173 { # Span attribute key and list of values to be used for filtering.
20174 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
20175 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
20176 &quot;A String&quot;,
20177 ],
20178 },
20179 ],
20180 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
20181 &quot;A String&quot;,
20182 ],
20183 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
20184 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
20185 &quot;A String&quot;,
20186 ],
20187 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
20188 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
20189 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
20190 &quot;A String&quot;,
20191 ],
20192 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
20193 &quot;A String&quot;,
20194 ],
20195 },
20196 },
20197 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
20198 },
20199 },
20200 ],
20201 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
20202 { # Defines a threshold for categorizing time series values.
20203 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
20204 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
20205 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
20206 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
20207 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
20208 },
20209 ],
20210 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
20211 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
20212 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
20213 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
20214 },
20215 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
20216 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
20217 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
20218 },
20219 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
20220 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
20221 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
20222 },
20223 },
20224 },
20225 ],
20226 },
20227 ],
20228 },
20229 }
20230
20231 validateOnly: boolean, If set, validate the request and preview the review, but do not actually save it.
20232 x__xgafv: string, V1 error format.
20233 Allowed values
20234 1 - v1 error format
20235 2 - v2 error format
20236
20237 Returns:
20238 An object of the form:
20239
20240 { # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
20241 &quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
20242 &quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
20243 &quot;A String&quot;,
20244 ],
20245 &quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
20246 { # Annotation configuration for one event type on a dashboard
20247 &quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
20248 &quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
20249 &quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
20250 &quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
20251 &quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
20252 &quot;A String&quot;,
20253 ],
20254 },
20255 ],
20256 },
20257 &quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
20258 &quot;columns&quot;: [ # The columns of content to display.
20259 { # Defines the layout properties and content for a column.
20260 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this column. The column weight is used to adjust the width of columns on the screen (relative to peers). Greater the weight, greater the width of the column on the screen. If omitted, a value of 1 is used while rendering.
20261 &quot;widgets&quot;: [ # The display widgets arranged vertically in this column.
20262 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
20263 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
20264 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
20265 },
20266 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
20267 },
20268 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
20269 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
20270 },
20271 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
20272 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
20273 &quot;A String&quot;,
20274 ],
20275 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
20276 &quot;A String&quot;,
20277 ],
20278 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
20279 &quot;A String&quot;,
20280 ],
20281 },
20282 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
20283 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
20284 },
20285 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
20286 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
20287 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
20288 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
20289 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
20290 &quot;a_key&quot;: &quot;A String&quot;,
20291 },
20292 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
20293 },
20294 ],
20295 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
20296 &quot;A String&quot;,
20297 ],
20298 },
20299 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
20300 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
20301 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
20302 &quot;A String&quot;,
20303 ],
20304 },
20305 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
20306 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
20307 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
20308 { # Groups a time series query definition.
20309 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
20310 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
20311 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
20312 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
20313 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
20314 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
20315 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
20316 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
20317 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
20318 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
20319 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
20320 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
20321 },
20322 ],
20323 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
20324 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
20325 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
20326 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20327 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20328 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20329 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20330 },
20331 ],
20332 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20333 },
20334 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
20335 },
20336 ],
20337 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
20338 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
20339 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
20340 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
20341 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
20342 },
20343 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
20344 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
20345 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
20346 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20347 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20348 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20349 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20350 &quot;A String&quot;,
20351 ],
20352 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20353 },
20354 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20355 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20356 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20357 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20358 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20359 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20360 },
20361 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20362 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20363 },
20364 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
20365 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20366 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20367 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20368 &quot;A String&quot;,
20369 ],
20370 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20371 },
20372 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20373 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20374 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20375 },
20376 },
20377 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
20378 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
20379 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20380 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20381 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20382 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20383 &quot;A String&quot;,
20384 ],
20385 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20386 },
20387 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20388 },
20389 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
20390 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20391 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20392 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20393 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20394 &quot;A String&quot;,
20395 ],
20396 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20397 },
20398 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20399 },
20400 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20401 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20402 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20403 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20404 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20405 },
20406 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20407 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20408 },
20409 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
20410 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20411 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20412 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20413 &quot;A String&quot;,
20414 ],
20415 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20416 },
20417 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20418 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20419 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20420 },
20421 },
20422 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
20423 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
20424 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
20425 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
20426 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
20427 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
20428 &quot;A String&quot;,
20429 ],
20430 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
20431 &quot;A String&quot;,
20432 ],
20433 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
20434 &quot;A String&quot;,
20435 ],
20436 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
20437 { # Span attribute key and list of values to be used for filtering.
20438 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
20439 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
20440 &quot;A String&quot;,
20441 ],
20442 },
20443 ],
20444 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
20445 &quot;A String&quot;,
20446 ],
20447 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
20448 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
20449 &quot;A String&quot;,
20450 ],
20451 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
20452 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
20453 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
20454 &quot;A String&quot;,
20455 ],
20456 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
20457 &quot;A String&quot;,
20458 ],
20459 },
20460 },
20461 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
20462 },
20463 },
20464 ],
20465 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
20466 },
20467 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
20468 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
20469 },
20470 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
20471 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
20472 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
20473 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20474 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20475 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20476 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20477 },
20478 ],
20479 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20480 },
20481 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
20482 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
20483 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
20484 },
20485 ],
20486 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
20487 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
20488 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
20489 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
20490 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
20491 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
20492 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
20493 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
20494 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
20495 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
20496 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
20497 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
20498 },
20499 ],
20500 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
20501 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
20502 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
20503 },
20504 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
20505 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
20506 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
20507 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20508 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20509 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20510 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20511 },
20512 ],
20513 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20514 },
20515 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
20516 },
20517 ],
20518 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
20519 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
20520 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
20521 },
20522 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
20523 { # Defines a threshold for categorizing time series values.
20524 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
20525 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
20526 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
20527 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
20528 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
20529 },
20530 ],
20531 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
20532 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
20533 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
20534 },
20535 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
20536 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
20537 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
20538 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20539 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20540 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20541 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20542 &quot;A String&quot;,
20543 ],
20544 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20545 },
20546 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20547 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20548 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20549 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20550 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20551 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20552 },
20553 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20554 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20555 },
20556 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
20557 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20558 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20559 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20560 &quot;A String&quot;,
20561 ],
20562 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20563 },
20564 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20565 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20566 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20567 },
20568 },
20569 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
20570 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
20571 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20572 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20573 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20574 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20575 &quot;A String&quot;,
20576 ],
20577 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20578 },
20579 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20580 },
20581 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
20582 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20583 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20584 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20585 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20586 &quot;A String&quot;,
20587 ],
20588 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20589 },
20590 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20591 },
20592 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20593 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20594 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20595 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20596 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20597 },
20598 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20599 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20600 },
20601 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
20602 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20603 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20604 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20605 &quot;A String&quot;,
20606 ],
20607 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20608 },
20609 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20610 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20611 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20612 },
20613 },
20614 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
20615 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
20616 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
20617 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
20618 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
20619 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
20620 &quot;A String&quot;,
20621 ],
20622 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
20623 &quot;A String&quot;,
20624 ],
20625 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
20626 &quot;A String&quot;,
20627 ],
20628 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
20629 { # Span attribute key and list of values to be used for filtering.
20630 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
20631 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
20632 &quot;A String&quot;,
20633 ],
20634 },
20635 ],
20636 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
20637 &quot;A String&quot;,
20638 ],
20639 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
20640 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
20641 &quot;A String&quot;,
20642 ],
20643 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
20644 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
20645 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
20646 &quot;A String&quot;,
20647 ],
20648 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
20649 &quot;A String&quot;,
20650 ],
20651 },
20652 },
20653 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
20654 },
20655 },
20656 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
20657 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
20658 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
20659 },
20660 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
20661 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
20662 },
20663 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
20664 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
20665 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
20666 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
20667 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
20668 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
20669 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
20670 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
20671 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
20672 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
20673 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
20674 },
20675 },
20676 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
20677 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
20678 { # The persistent settings for a table&#x27;s columns.
20679 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
20680 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
20681 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
20682 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
20683 { # Defines a threshold for categorizing time series values.
20684 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
20685 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
20686 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
20687 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
20688 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
20689 },
20690 ],
20691 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
20692 },
20693 ],
20694 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
20695 { # Groups a time series query definition with table options.
20696 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
20697 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
20698 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
20699 &quot;A String&quot;,
20700 ],
20701 },
20702 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
20703 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
20704 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
20705 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
20706 },
20707 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
20708 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
20709 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
20710 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20711 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20712 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20713 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20714 &quot;A String&quot;,
20715 ],
20716 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20717 },
20718 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20719 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20720 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20721 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20722 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20723 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20724 },
20725 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20726 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20727 },
20728 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
20729 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20730 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20731 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20732 &quot;A String&quot;,
20733 ],
20734 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20735 },
20736 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20737 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20738 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20739 },
20740 },
20741 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
20742 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
20743 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20744 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20745 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20746 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20747 &quot;A String&quot;,
20748 ],
20749 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20750 },
20751 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20752 },
20753 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
20754 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20755 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20756 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20757 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20758 &quot;A String&quot;,
20759 ],
20760 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20761 },
20762 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20763 },
20764 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20765 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20766 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20767 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20768 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20769 },
20770 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20771 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20772 },
20773 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
20774 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20775 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20776 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20777 &quot;A String&quot;,
20778 ],
20779 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20780 },
20781 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20782 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20783 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20784 },
20785 },
20786 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
20787 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
20788 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
20789 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
20790 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
20791 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
20792 &quot;A String&quot;,
20793 ],
20794 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
20795 &quot;A String&quot;,
20796 ],
20797 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
20798 &quot;A String&quot;,
20799 ],
20800 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
20801 { # Span attribute key and list of values to be used for filtering.
20802 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
20803 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
20804 &quot;A String&quot;,
20805 ],
20806 },
20807 ],
20808 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
20809 &quot;A String&quot;,
20810 ],
20811 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
20812 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
20813 &quot;A String&quot;,
20814 ],
20815 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
20816 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
20817 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
20818 &quot;A String&quot;,
20819 ],
20820 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
20821 &quot;A String&quot;,
20822 ],
20823 },
20824 },
20825 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
20826 },
20827 },
20828 ],
20829 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
20830 },
20831 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
20832 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
20833 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
20834 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
20835 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
20836 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
20837 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
20838 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20839 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20840 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20841 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20842 },
20843 ],
20844 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20845 },
20846 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
20847 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
20848 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
20849 },
20850 ],
20851 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
20852 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
20853 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
20854 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
20855 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
20856 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
20857 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
20858 },
20859 ],
20860 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
20861 },
20862 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
20863 },
20864 ],
20865 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
20866 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
20867 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
20868 },
20869 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
20870 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
20871 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
20872 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20873 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20874 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20875 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20876 &quot;A String&quot;,
20877 ],
20878 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20879 },
20880 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20881 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20882 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20883 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20884 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20885 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20886 },
20887 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20888 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20889 },
20890 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
20891 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20892 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20893 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20894 &quot;A String&quot;,
20895 ],
20896 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20897 },
20898 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20899 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20900 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20901 },
20902 },
20903 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
20904 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
20905 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20906 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20907 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20908 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20909 &quot;A String&quot;,
20910 ],
20911 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20912 },
20913 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20914 },
20915 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
20916 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
20917 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20918 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20919 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20920 &quot;A String&quot;,
20921 ],
20922 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20923 },
20924 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
20925 },
20926 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
20927 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
20928 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
20929 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
20930 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
20931 },
20932 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
20933 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
20934 },
20935 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
20936 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
20937 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
20938 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
20939 &quot;A String&quot;,
20940 ],
20941 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
20942 },
20943 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
20944 &quot;numTimeSeries&quot;: 42, # How many time series to output.
20945 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
20946 },
20947 },
20948 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
20949 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
20950 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
20951 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
20952 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
20953 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
20954 &quot;A String&quot;,
20955 ],
20956 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
20957 &quot;A String&quot;,
20958 ],
20959 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
20960 &quot;A String&quot;,
20961 ],
20962 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
20963 { # Span attribute key and list of values to be used for filtering.
20964 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
20965 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
20966 &quot;A String&quot;,
20967 ],
20968 },
20969 ],
20970 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
20971 &quot;A String&quot;,
20972 ],
20973 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
20974 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
20975 &quot;A String&quot;,
20976 ],
20977 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
20978 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
20979 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
20980 &quot;A String&quot;,
20981 ],
20982 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
20983 &quot;A String&quot;,
20984 ],
20985 },
20986 },
20987 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
20988 },
20989 },
20990 ],
20991 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
20992 &quot;A String&quot;,
20993 ],
20994 },
20995 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
20996 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
20997 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
20998 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
20999 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
21000 },
21001 },
21002 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
21003 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
21004 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
21005 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
21006 },
21007 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
21008 { # Groups a time series query definition with charting options.
21009 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
21010 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
21011 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
21012 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21013 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21014 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21015 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21016 },
21017 ],
21018 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21019 },
21020 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
21021 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
21022 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
21023 },
21024 ],
21025 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
21026 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
21027 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
21028 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
21029 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
21030 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
21031 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
21032 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
21033 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
21034 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
21035 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
21036 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
21037 },
21038 ],
21039 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
21040 &quot;measures&quot;: [ # Optional. A collection of measures.
21041 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
21042 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
21043 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21044 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21045 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21046 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21047 },
21048 ],
21049 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21050 },
21051 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
21052 },
21053 ],
21054 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
21055 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
21056 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
21057 { # Data structure to storing column&#x27;s sort strategy
21058 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
21059 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
21060 },
21061 ],
21062 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
21063 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
21064 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
21065 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
21066 },
21067 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
21068 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
21069 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
21070 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21071 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21072 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21073 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21074 &quot;A String&quot;,
21075 ],
21076 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21077 },
21078 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21079 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21080 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21081 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21082 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21083 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21084 },
21085 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21086 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21087 },
21088 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
21089 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21090 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21091 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21092 &quot;A String&quot;,
21093 ],
21094 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21095 },
21096 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21097 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21098 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21099 },
21100 },
21101 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
21102 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
21103 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21104 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21105 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21106 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21107 &quot;A String&quot;,
21108 ],
21109 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21110 },
21111 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21112 },
21113 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
21114 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21115 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21116 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21117 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21118 &quot;A String&quot;,
21119 ],
21120 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21121 },
21122 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21123 },
21124 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21125 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21126 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21127 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21128 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21129 },
21130 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21131 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21132 },
21133 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
21134 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21135 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21136 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21137 &quot;A String&quot;,
21138 ],
21139 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21140 },
21141 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21142 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21143 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21144 },
21145 },
21146 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
21147 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
21148 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
21149 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
21150 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
21151 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
21152 &quot;A String&quot;,
21153 ],
21154 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
21155 &quot;A String&quot;,
21156 ],
21157 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
21158 &quot;A String&quot;,
21159 ],
21160 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
21161 { # Span attribute key and list of values to be used for filtering.
21162 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
21163 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
21164 &quot;A String&quot;,
21165 ],
21166 },
21167 ],
21168 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
21169 &quot;A String&quot;,
21170 ],
21171 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
21172 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
21173 &quot;A String&quot;,
21174 ],
21175 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
21176 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
21177 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
21178 &quot;A String&quot;,
21179 ],
21180 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
21181 &quot;A String&quot;,
21182 ],
21183 },
21184 },
21185 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
21186 },
21187 },
21188 ],
21189 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
21190 { # Defines a threshold for categorizing time series values.
21191 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
21192 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
21193 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
21194 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
21195 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
21196 },
21197 ],
21198 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
21199 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
21200 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
21201 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
21202 },
21203 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
21204 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
21205 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
21206 },
21207 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
21208 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
21209 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
21210 },
21211 },
21212 },
21213 ],
21214 },
21215 ],
21216 },
21217 &quot;dashboardFilters&quot;: [ # Filters to reduce the amount of data charted based on the filter criteria.
21218 { # A filter to reduce the amount of data charted in relevant widgets.
21219 &quot;filterType&quot;: &quot;A String&quot;, # The specified filter type
21220 &quot;labelKey&quot;: &quot;A String&quot;, # Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.
21221 &quot;stringArray&quot;: { # An array of strings # A list of possible string values for the filter
21222 &quot;values&quot;: [ # The values of the array
21223 &quot;A String&quot;,
21224 ],
21225 },
21226 &quot;stringArrayValue&quot;: { # An array of strings # An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED
21227 &quot;values&quot;: [ # The values of the array
21228 &quot;A String&quot;,
21229 ],
21230 },
21231 &quot;stringValue&quot;: &quot;A String&quot;, # A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED
21232 &quot;templateVariable&quot;: &quot;A String&quot;, # The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.
21233 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported
21234 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
21235 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
21236 },
21237 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
21238 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
21239 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
21240 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21241 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21242 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21243 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21244 &quot;A String&quot;,
21245 ],
21246 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21247 },
21248 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21249 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21250 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21251 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21252 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21253 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21254 },
21255 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21256 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21257 },
21258 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
21259 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21260 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21261 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21262 &quot;A String&quot;,
21263 ],
21264 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21265 },
21266 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21267 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21268 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21269 },
21270 },
21271 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
21272 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
21273 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21274 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21275 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21276 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21277 &quot;A String&quot;,
21278 ],
21279 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21280 },
21281 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21282 },
21283 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
21284 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21285 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21286 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21287 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21288 &quot;A String&quot;,
21289 ],
21290 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21291 },
21292 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21293 },
21294 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21295 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21296 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21297 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21298 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21299 },
21300 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21301 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21302 },
21303 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
21304 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21305 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21306 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21307 &quot;A String&quot;,
21308 ],
21309 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21310 },
21311 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21312 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21313 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21314 },
21315 },
21316 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
21317 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
21318 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
21319 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
21320 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
21321 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
21322 &quot;A String&quot;,
21323 ],
21324 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
21325 &quot;A String&quot;,
21326 ],
21327 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
21328 &quot;A String&quot;,
21329 ],
21330 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
21331 { # Span attribute key and list of values to be used for filtering.
21332 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
21333 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
21334 &quot;A String&quot;,
21335 ],
21336 },
21337 ],
21338 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
21339 &quot;A String&quot;,
21340 ],
21341 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
21342 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
21343 &quot;A String&quot;,
21344 ],
21345 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
21346 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
21347 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
21348 &quot;A String&quot;,
21349 ],
21350 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
21351 &quot;A String&quot;,
21352 ],
21353 },
21354 },
21355 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
21356 },
21357 &quot;valueType&quot;: &quot;A String&quot;, # The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.
21358 },
21359 ],
21360 &quot;displayName&quot;: &quot;A String&quot;, # Required. The mutable, human-readable name.
21361 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. An etag is returned in the response to GetDashboard, and users are expected to put that etag in the request to UpdateDashboard to ensure that their change will be applied to the same version of the Dashboard configuration. The field should not be passed during dashboard creation.
21362 &quot;gridLayout&quot;: { # A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy. # Content is arranged with a basic layout that re-flows a simple list of informational elements like widgets or tiles.
21363 &quot;columns&quot;: &quot;A String&quot;, # The number of columns into which the view&#x27;s width is divided. If omitted or set to zero, a system default will be used while rendering.
21364 &quot;widgets&quot;: [ # The informational elements that are arranged into the columns row-first.
21365 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
21366 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
21367 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
21368 },
21369 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
21370 },
21371 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
21372 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
21373 },
21374 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
21375 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
21376 &quot;A String&quot;,
21377 ],
21378 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
21379 &quot;A String&quot;,
21380 ],
21381 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
21382 &quot;A String&quot;,
21383 ],
21384 },
21385 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
21386 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
21387 },
21388 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
21389 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
21390 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
21391 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
21392 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
21393 &quot;a_key&quot;: &quot;A String&quot;,
21394 },
21395 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
21396 },
21397 ],
21398 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
21399 &quot;A String&quot;,
21400 ],
21401 },
21402 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
21403 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
21404 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
21405 &quot;A String&quot;,
21406 ],
21407 },
21408 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
21409 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
21410 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
21411 { # Groups a time series query definition.
21412 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
21413 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
21414 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
21415 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
21416 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
21417 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
21418 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
21419 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
21420 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
21421 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
21422 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
21423 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
21424 },
21425 ],
21426 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
21427 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
21428 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
21429 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21430 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21431 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21432 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21433 },
21434 ],
21435 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21436 },
21437 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
21438 },
21439 ],
21440 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
21441 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
21442 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
21443 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
21444 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
21445 },
21446 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
21447 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
21448 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
21449 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21450 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21451 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21452 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21453 &quot;A String&quot;,
21454 ],
21455 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21456 },
21457 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21458 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21459 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21460 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21461 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21462 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21463 },
21464 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21465 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21466 },
21467 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
21468 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21469 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21470 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21471 &quot;A String&quot;,
21472 ],
21473 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21474 },
21475 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21476 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21477 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21478 },
21479 },
21480 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
21481 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
21482 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21483 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21484 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21485 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21486 &quot;A String&quot;,
21487 ],
21488 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21489 },
21490 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21491 },
21492 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
21493 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21494 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21495 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21496 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21497 &quot;A String&quot;,
21498 ],
21499 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21500 },
21501 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21502 },
21503 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21504 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21505 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21506 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21507 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21508 },
21509 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21510 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21511 },
21512 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
21513 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21514 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21515 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21516 &quot;A String&quot;,
21517 ],
21518 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21519 },
21520 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21521 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21522 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21523 },
21524 },
21525 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
21526 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
21527 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
21528 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
21529 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
21530 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
21531 &quot;A String&quot;,
21532 ],
21533 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
21534 &quot;A String&quot;,
21535 ],
21536 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
21537 &quot;A String&quot;,
21538 ],
21539 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
21540 { # Span attribute key and list of values to be used for filtering.
21541 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
21542 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
21543 &quot;A String&quot;,
21544 ],
21545 },
21546 ],
21547 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
21548 &quot;A String&quot;,
21549 ],
21550 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
21551 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
21552 &quot;A String&quot;,
21553 ],
21554 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
21555 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
21556 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
21557 &quot;A String&quot;,
21558 ],
21559 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
21560 &quot;A String&quot;,
21561 ],
21562 },
21563 },
21564 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
21565 },
21566 },
21567 ],
21568 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
21569 },
21570 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
21571 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
21572 },
21573 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
21574 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
21575 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
21576 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21577 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21578 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21579 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21580 },
21581 ],
21582 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21583 },
21584 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
21585 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
21586 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
21587 },
21588 ],
21589 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
21590 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
21591 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
21592 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
21593 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
21594 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
21595 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
21596 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
21597 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
21598 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
21599 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
21600 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
21601 },
21602 ],
21603 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
21604 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
21605 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
21606 },
21607 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
21608 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
21609 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
21610 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21611 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21612 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21613 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21614 },
21615 ],
21616 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21617 },
21618 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
21619 },
21620 ],
21621 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
21622 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
21623 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
21624 },
21625 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
21626 { # Defines a threshold for categorizing time series values.
21627 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
21628 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
21629 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
21630 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
21631 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
21632 },
21633 ],
21634 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
21635 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
21636 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
21637 },
21638 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
21639 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
21640 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
21641 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21642 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21643 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21644 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21645 &quot;A String&quot;,
21646 ],
21647 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21648 },
21649 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21650 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21651 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21652 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21653 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21654 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21655 },
21656 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21657 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21658 },
21659 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
21660 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21661 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21662 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21663 &quot;A String&quot;,
21664 ],
21665 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21666 },
21667 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21668 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21669 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21670 },
21671 },
21672 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
21673 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
21674 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21675 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21676 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21677 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21678 &quot;A String&quot;,
21679 ],
21680 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21681 },
21682 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21683 },
21684 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
21685 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21686 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21687 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21688 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21689 &quot;A String&quot;,
21690 ],
21691 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21692 },
21693 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21694 },
21695 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21696 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21697 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21698 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21699 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21700 },
21701 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21702 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21703 },
21704 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
21705 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21706 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21707 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21708 &quot;A String&quot;,
21709 ],
21710 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21711 },
21712 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21713 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21714 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21715 },
21716 },
21717 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
21718 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
21719 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
21720 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
21721 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
21722 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
21723 &quot;A String&quot;,
21724 ],
21725 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
21726 &quot;A String&quot;,
21727 ],
21728 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
21729 &quot;A String&quot;,
21730 ],
21731 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
21732 { # Span attribute key and list of values to be used for filtering.
21733 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
21734 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
21735 &quot;A String&quot;,
21736 ],
21737 },
21738 ],
21739 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
21740 &quot;A String&quot;,
21741 ],
21742 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
21743 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
21744 &quot;A String&quot;,
21745 ],
21746 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
21747 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
21748 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
21749 &quot;A String&quot;,
21750 ],
21751 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
21752 &quot;A String&quot;,
21753 ],
21754 },
21755 },
21756 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
21757 },
21758 },
21759 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
21760 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
21761 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
21762 },
21763 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
21764 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
21765 },
21766 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
21767 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
21768 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
21769 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
21770 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
21771 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
21772 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
21773 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
21774 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
21775 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
21776 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
21777 },
21778 },
21779 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
21780 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
21781 { # The persistent settings for a table&#x27;s columns.
21782 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
21783 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
21784 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
21785 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
21786 { # Defines a threshold for categorizing time series values.
21787 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
21788 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
21789 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
21790 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
21791 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
21792 },
21793 ],
21794 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
21795 },
21796 ],
21797 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
21798 { # Groups a time series query definition with table options.
21799 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
21800 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
21801 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
21802 &quot;A String&quot;,
21803 ],
21804 },
21805 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
21806 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
21807 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
21808 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
21809 },
21810 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
21811 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
21812 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
21813 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21814 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21815 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21816 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21817 &quot;A String&quot;,
21818 ],
21819 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21820 },
21821 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21822 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21823 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21824 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21825 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21826 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21827 },
21828 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21829 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21830 },
21831 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
21832 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21833 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21834 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21835 &quot;A String&quot;,
21836 ],
21837 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21838 },
21839 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21840 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21841 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21842 },
21843 },
21844 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
21845 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
21846 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21847 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21848 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21849 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21850 &quot;A String&quot;,
21851 ],
21852 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21853 },
21854 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21855 },
21856 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
21857 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21858 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21859 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21860 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21861 &quot;A String&quot;,
21862 ],
21863 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21864 },
21865 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21866 },
21867 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21868 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21869 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21870 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21871 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21872 },
21873 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21874 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21875 },
21876 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
21877 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21878 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21879 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21880 &quot;A String&quot;,
21881 ],
21882 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21883 },
21884 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
21885 &quot;numTimeSeries&quot;: 42, # How many time series to output.
21886 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
21887 },
21888 },
21889 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
21890 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
21891 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
21892 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
21893 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
21894 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
21895 &quot;A String&quot;,
21896 ],
21897 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
21898 &quot;A String&quot;,
21899 ],
21900 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
21901 &quot;A String&quot;,
21902 ],
21903 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
21904 { # Span attribute key and list of values to be used for filtering.
21905 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
21906 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
21907 &quot;A String&quot;,
21908 ],
21909 },
21910 ],
21911 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
21912 &quot;A String&quot;,
21913 ],
21914 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
21915 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
21916 &quot;A String&quot;,
21917 ],
21918 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
21919 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
21920 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
21921 &quot;A String&quot;,
21922 ],
21923 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
21924 &quot;A String&quot;,
21925 ],
21926 },
21927 },
21928 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
21929 },
21930 },
21931 ],
21932 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
21933 },
21934 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
21935 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
21936 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
21937 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
21938 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
21939 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
21940 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
21941 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21942 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21943 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21944 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21945 },
21946 ],
21947 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21948 },
21949 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
21950 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
21951 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
21952 },
21953 ],
21954 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
21955 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
21956 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
21957 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
21958 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
21959 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
21960 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
21961 },
21962 ],
21963 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
21964 },
21965 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
21966 },
21967 ],
21968 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
21969 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
21970 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
21971 },
21972 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
21973 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
21974 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
21975 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
21976 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21977 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21978 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21979 &quot;A String&quot;,
21980 ],
21981 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
21982 },
21983 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
21984 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
21985 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
21986 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
21987 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
21988 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
21989 },
21990 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
21991 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
21992 },
21993 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
21994 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
21995 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
21996 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
21997 &quot;A String&quot;,
21998 ],
21999 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22000 },
22001 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22002 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22003 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22004 },
22005 },
22006 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
22007 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
22008 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22009 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22010 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22011 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22012 &quot;A String&quot;,
22013 ],
22014 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22015 },
22016 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22017 },
22018 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
22019 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22020 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22021 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22022 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22023 &quot;A String&quot;,
22024 ],
22025 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22026 },
22027 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22028 },
22029 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22030 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22031 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22032 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22033 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22034 },
22035 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22036 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22037 },
22038 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
22039 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22040 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22041 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22042 &quot;A String&quot;,
22043 ],
22044 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22045 },
22046 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22047 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22048 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22049 },
22050 },
22051 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
22052 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
22053 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
22054 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
22055 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
22056 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
22057 &quot;A String&quot;,
22058 ],
22059 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
22060 &quot;A String&quot;,
22061 ],
22062 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
22063 &quot;A String&quot;,
22064 ],
22065 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
22066 { # Span attribute key and list of values to be used for filtering.
22067 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
22068 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
22069 &quot;A String&quot;,
22070 ],
22071 },
22072 ],
22073 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
22074 &quot;A String&quot;,
22075 ],
22076 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
22077 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
22078 &quot;A String&quot;,
22079 ],
22080 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
22081 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
22082 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
22083 &quot;A String&quot;,
22084 ],
22085 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
22086 &quot;A String&quot;,
22087 ],
22088 },
22089 },
22090 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
22091 },
22092 },
22093 ],
22094 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
22095 &quot;A String&quot;,
22096 ],
22097 },
22098 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
22099 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
22100 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
22101 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
22102 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
22103 },
22104 },
22105 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
22106 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
22107 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
22108 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
22109 },
22110 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
22111 { # Groups a time series query definition with charting options.
22112 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
22113 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
22114 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
22115 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22116 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22117 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22118 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22119 },
22120 ],
22121 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22122 },
22123 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
22124 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
22125 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
22126 },
22127 ],
22128 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
22129 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
22130 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
22131 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
22132 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
22133 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
22134 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
22135 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
22136 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
22137 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
22138 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
22139 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
22140 },
22141 ],
22142 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
22143 &quot;measures&quot;: [ # Optional. A collection of measures.
22144 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
22145 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
22146 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22147 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22148 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22149 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22150 },
22151 ],
22152 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22153 },
22154 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
22155 },
22156 ],
22157 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
22158 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
22159 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
22160 { # Data structure to storing column&#x27;s sort strategy
22161 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
22162 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
22163 },
22164 ],
22165 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
22166 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
22167 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
22168 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
22169 },
22170 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
22171 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
22172 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
22173 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22174 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22175 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22176 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22177 &quot;A String&quot;,
22178 ],
22179 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22180 },
22181 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22182 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22183 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22184 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22185 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22186 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22187 },
22188 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22189 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22190 },
22191 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
22192 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22193 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22194 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22195 &quot;A String&quot;,
22196 ],
22197 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22198 },
22199 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22200 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22201 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22202 },
22203 },
22204 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
22205 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
22206 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22207 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22208 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22209 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22210 &quot;A String&quot;,
22211 ],
22212 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22213 },
22214 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22215 },
22216 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
22217 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22218 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22219 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22220 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22221 &quot;A String&quot;,
22222 ],
22223 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22224 },
22225 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22226 },
22227 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22228 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22229 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22230 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22231 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22232 },
22233 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22234 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22235 },
22236 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
22237 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22238 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22239 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22240 &quot;A String&quot;,
22241 ],
22242 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22243 },
22244 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22245 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22246 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22247 },
22248 },
22249 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
22250 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
22251 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
22252 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
22253 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
22254 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
22255 &quot;A String&quot;,
22256 ],
22257 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
22258 &quot;A String&quot;,
22259 ],
22260 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
22261 &quot;A String&quot;,
22262 ],
22263 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
22264 { # Span attribute key and list of values to be used for filtering.
22265 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
22266 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
22267 &quot;A String&quot;,
22268 ],
22269 },
22270 ],
22271 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
22272 &quot;A String&quot;,
22273 ],
22274 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
22275 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
22276 &quot;A String&quot;,
22277 ],
22278 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
22279 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
22280 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
22281 &quot;A String&quot;,
22282 ],
22283 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
22284 &quot;A String&quot;,
22285 ],
22286 },
22287 },
22288 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
22289 },
22290 },
22291 ],
22292 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
22293 { # Defines a threshold for categorizing time series values.
22294 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
22295 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
22296 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
22297 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
22298 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
22299 },
22300 ],
22301 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
22302 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
22303 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
22304 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
22305 },
22306 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
22307 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
22308 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
22309 },
22310 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
22311 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
22312 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
22313 },
22314 },
22315 },
22316 ],
22317 },
22318 &quot;labels&quot;: { # Labels applied to the dashboard
22319 &quot;a_key&quot;: &quot;A String&quot;,
22320 },
22321 &quot;mosaicLayout&quot;: { # A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid. # The content is arranged as a grid of tiles, with each content widget occupying one or more grid blocks.
22322 &quot;columns&quot;: 42, # The number of columns in the mosaic grid. The number of columns must be between 1 and 48, inclusive.
22323 &quot;tiles&quot;: [ # The tiles to display.
22324 { # A single tile in the mosaic. The placement and size of the tile are configurable.
22325 &quot;height&quot;: 42, # The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
22326 &quot;widget&quot;: { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard. # The informational widget contained in the tile. For example an XyChart.
22327 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
22328 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
22329 },
22330 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
22331 },
22332 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
22333 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
22334 },
22335 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
22336 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
22337 &quot;A String&quot;,
22338 ],
22339 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
22340 &quot;A String&quot;,
22341 ],
22342 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
22343 &quot;A String&quot;,
22344 ],
22345 },
22346 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
22347 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
22348 },
22349 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
22350 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
22351 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
22352 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
22353 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
22354 &quot;a_key&quot;: &quot;A String&quot;,
22355 },
22356 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
22357 },
22358 ],
22359 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
22360 &quot;A String&quot;,
22361 ],
22362 },
22363 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
22364 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
22365 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
22366 &quot;A String&quot;,
22367 ],
22368 },
22369 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
22370 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
22371 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
22372 { # Groups a time series query definition.
22373 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
22374 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
22375 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
22376 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
22377 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
22378 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
22379 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
22380 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
22381 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
22382 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
22383 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
22384 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
22385 },
22386 ],
22387 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
22388 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
22389 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
22390 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22391 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22392 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22393 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22394 },
22395 ],
22396 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22397 },
22398 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
22399 },
22400 ],
22401 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
22402 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
22403 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
22404 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
22405 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
22406 },
22407 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
22408 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
22409 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
22410 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22411 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22412 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22413 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22414 &quot;A String&quot;,
22415 ],
22416 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22417 },
22418 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22419 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22420 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22421 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22422 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22423 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22424 },
22425 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22426 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22427 },
22428 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
22429 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22430 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22431 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22432 &quot;A String&quot;,
22433 ],
22434 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22435 },
22436 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22437 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22438 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22439 },
22440 },
22441 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
22442 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
22443 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22444 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22445 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22446 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22447 &quot;A String&quot;,
22448 ],
22449 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22450 },
22451 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22452 },
22453 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
22454 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22455 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22456 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22457 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22458 &quot;A String&quot;,
22459 ],
22460 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22461 },
22462 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22463 },
22464 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22465 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22466 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22467 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22468 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22469 },
22470 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22471 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22472 },
22473 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
22474 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22475 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22476 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22477 &quot;A String&quot;,
22478 ],
22479 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22480 },
22481 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22482 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22483 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22484 },
22485 },
22486 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
22487 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
22488 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
22489 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
22490 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
22491 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
22492 &quot;A String&quot;,
22493 ],
22494 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
22495 &quot;A String&quot;,
22496 ],
22497 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
22498 &quot;A String&quot;,
22499 ],
22500 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
22501 { # Span attribute key and list of values to be used for filtering.
22502 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
22503 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
22504 &quot;A String&quot;,
22505 ],
22506 },
22507 ],
22508 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
22509 &quot;A String&quot;,
22510 ],
22511 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
22512 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
22513 &quot;A String&quot;,
22514 ],
22515 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
22516 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
22517 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
22518 &quot;A String&quot;,
22519 ],
22520 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
22521 &quot;A String&quot;,
22522 ],
22523 },
22524 },
22525 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
22526 },
22527 },
22528 ],
22529 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
22530 },
22531 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
22532 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
22533 },
22534 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
22535 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
22536 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
22537 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22538 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22539 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22540 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22541 },
22542 ],
22543 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22544 },
22545 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
22546 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
22547 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
22548 },
22549 ],
22550 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
22551 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
22552 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
22553 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
22554 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
22555 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
22556 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
22557 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
22558 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
22559 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
22560 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
22561 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
22562 },
22563 ],
22564 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
22565 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
22566 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
22567 },
22568 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
22569 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
22570 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
22571 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22572 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22573 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22574 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22575 },
22576 ],
22577 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22578 },
22579 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
22580 },
22581 ],
22582 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
22583 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
22584 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
22585 },
22586 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
22587 { # Defines a threshold for categorizing time series values.
22588 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
22589 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
22590 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
22591 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
22592 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
22593 },
22594 ],
22595 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
22596 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
22597 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
22598 },
22599 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
22600 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
22601 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
22602 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22603 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22604 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22605 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22606 &quot;A String&quot;,
22607 ],
22608 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22609 },
22610 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22611 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22612 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22613 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22614 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22615 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22616 },
22617 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22618 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22619 },
22620 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
22621 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22622 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22623 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22624 &quot;A String&quot;,
22625 ],
22626 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22627 },
22628 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22629 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22630 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22631 },
22632 },
22633 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
22634 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
22635 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22636 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22637 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22638 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22639 &quot;A String&quot;,
22640 ],
22641 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22642 },
22643 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22644 },
22645 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
22646 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22647 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22648 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22649 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22650 &quot;A String&quot;,
22651 ],
22652 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22653 },
22654 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22655 },
22656 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22657 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22658 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22659 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22660 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22661 },
22662 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22663 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22664 },
22665 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
22666 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22667 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22668 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22669 &quot;A String&quot;,
22670 ],
22671 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22672 },
22673 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22674 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22675 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22676 },
22677 },
22678 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
22679 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
22680 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
22681 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
22682 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
22683 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
22684 &quot;A String&quot;,
22685 ],
22686 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
22687 &quot;A String&quot;,
22688 ],
22689 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
22690 &quot;A String&quot;,
22691 ],
22692 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
22693 { # Span attribute key and list of values to be used for filtering.
22694 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
22695 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
22696 &quot;A String&quot;,
22697 ],
22698 },
22699 ],
22700 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
22701 &quot;A String&quot;,
22702 ],
22703 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
22704 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
22705 &quot;A String&quot;,
22706 ],
22707 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
22708 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
22709 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
22710 &quot;A String&quot;,
22711 ],
22712 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
22713 &quot;A String&quot;,
22714 ],
22715 },
22716 },
22717 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
22718 },
22719 },
22720 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
22721 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
22722 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
22723 },
22724 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
22725 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
22726 },
22727 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
22728 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
22729 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
22730 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
22731 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
22732 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
22733 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
22734 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
22735 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
22736 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
22737 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
22738 },
22739 },
22740 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
22741 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
22742 { # The persistent settings for a table&#x27;s columns.
22743 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
22744 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
22745 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
22746 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
22747 { # Defines a threshold for categorizing time series values.
22748 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
22749 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
22750 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
22751 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
22752 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
22753 },
22754 ],
22755 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
22756 },
22757 ],
22758 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
22759 { # Groups a time series query definition with table options.
22760 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
22761 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
22762 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
22763 &quot;A String&quot;,
22764 ],
22765 },
22766 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
22767 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
22768 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
22769 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
22770 },
22771 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
22772 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
22773 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
22774 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22775 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22776 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22777 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22778 &quot;A String&quot;,
22779 ],
22780 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22781 },
22782 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22783 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22784 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22785 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22786 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22787 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22788 },
22789 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22790 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22791 },
22792 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
22793 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22794 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22795 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22796 &quot;A String&quot;,
22797 ],
22798 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22799 },
22800 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22801 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22802 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22803 },
22804 },
22805 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
22806 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
22807 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22808 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22809 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22810 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22811 &quot;A String&quot;,
22812 ],
22813 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22814 },
22815 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22816 },
22817 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
22818 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22819 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22820 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22821 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22822 &quot;A String&quot;,
22823 ],
22824 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22825 },
22826 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22827 },
22828 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22829 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22830 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22831 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22832 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22833 },
22834 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22835 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22836 },
22837 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
22838 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22839 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22840 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22841 &quot;A String&quot;,
22842 ],
22843 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22844 },
22845 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22846 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22847 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22848 },
22849 },
22850 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
22851 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
22852 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
22853 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
22854 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
22855 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
22856 &quot;A String&quot;,
22857 ],
22858 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
22859 &quot;A String&quot;,
22860 ],
22861 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
22862 &quot;A String&quot;,
22863 ],
22864 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
22865 { # Span attribute key and list of values to be used for filtering.
22866 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
22867 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
22868 &quot;A String&quot;,
22869 ],
22870 },
22871 ],
22872 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
22873 &quot;A String&quot;,
22874 ],
22875 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
22876 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
22877 &quot;A String&quot;,
22878 ],
22879 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
22880 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
22881 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
22882 &quot;A String&quot;,
22883 ],
22884 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
22885 &quot;A String&quot;,
22886 ],
22887 },
22888 },
22889 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
22890 },
22891 },
22892 ],
22893 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
22894 },
22895 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
22896 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
22897 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
22898 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
22899 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
22900 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
22901 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
22902 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22903 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22904 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22905 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22906 },
22907 ],
22908 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22909 },
22910 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
22911 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
22912 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
22913 },
22914 ],
22915 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
22916 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
22917 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
22918 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
22919 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
22920 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
22921 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
22922 },
22923 ],
22924 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
22925 },
22926 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
22927 },
22928 ],
22929 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
22930 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
22931 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
22932 },
22933 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
22934 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
22935 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
22936 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22937 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22938 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22939 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22940 &quot;A String&quot;,
22941 ],
22942 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22943 },
22944 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22945 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22946 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22947 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22948 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22949 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22950 },
22951 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22952 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22953 },
22954 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
22955 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22956 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22957 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22958 &quot;A String&quot;,
22959 ],
22960 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22961 },
22962 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
22963 &quot;numTimeSeries&quot;: 42, # How many time series to output.
22964 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
22965 },
22966 },
22967 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
22968 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
22969 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22970 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22971 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22972 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22973 &quot;A String&quot;,
22974 ],
22975 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22976 },
22977 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22978 },
22979 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
22980 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
22981 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
22982 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
22983 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
22984 &quot;A String&quot;,
22985 ],
22986 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
22987 },
22988 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
22989 },
22990 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
22991 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
22992 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
22993 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
22994 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
22995 },
22996 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
22997 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
22998 },
22999 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
23000 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23001 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23002 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23003 &quot;A String&quot;,
23004 ],
23005 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23006 },
23007 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23008 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23009 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23010 },
23011 },
23012 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
23013 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
23014 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
23015 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
23016 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
23017 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
23018 &quot;A String&quot;,
23019 ],
23020 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
23021 &quot;A String&quot;,
23022 ],
23023 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
23024 &quot;A String&quot;,
23025 ],
23026 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
23027 { # Span attribute key and list of values to be used for filtering.
23028 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
23029 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
23030 &quot;A String&quot;,
23031 ],
23032 },
23033 ],
23034 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
23035 &quot;A String&quot;,
23036 ],
23037 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
23038 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
23039 &quot;A String&quot;,
23040 ],
23041 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
23042 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
23043 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
23044 &quot;A String&quot;,
23045 ],
23046 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
23047 &quot;A String&quot;,
23048 ],
23049 },
23050 },
23051 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
23052 },
23053 },
23054 ],
23055 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
23056 &quot;A String&quot;,
23057 ],
23058 },
23059 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
23060 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
23061 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
23062 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
23063 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
23064 },
23065 },
23066 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
23067 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
23068 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
23069 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
23070 },
23071 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
23072 { # Groups a time series query definition with charting options.
23073 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
23074 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
23075 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
23076 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23077 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23078 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23079 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23080 },
23081 ],
23082 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23083 },
23084 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
23085 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
23086 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
23087 },
23088 ],
23089 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
23090 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
23091 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
23092 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
23093 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
23094 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
23095 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
23096 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
23097 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
23098 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
23099 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
23100 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
23101 },
23102 ],
23103 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
23104 &quot;measures&quot;: [ # Optional. A collection of measures.
23105 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
23106 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
23107 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23108 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23109 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23110 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23111 },
23112 ],
23113 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23114 },
23115 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
23116 },
23117 ],
23118 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
23119 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
23120 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
23121 { # Data structure to storing column&#x27;s sort strategy
23122 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
23123 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
23124 },
23125 ],
23126 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
23127 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
23128 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
23129 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
23130 },
23131 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
23132 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
23133 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
23134 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23135 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23136 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23137 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23138 &quot;A String&quot;,
23139 ],
23140 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23141 },
23142 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23143 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23144 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23145 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23146 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23147 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23148 },
23149 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23150 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23151 },
23152 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
23153 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23154 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23155 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23156 &quot;A String&quot;,
23157 ],
23158 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23159 },
23160 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23161 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23162 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23163 },
23164 },
23165 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
23166 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
23167 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23168 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23169 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23170 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23171 &quot;A String&quot;,
23172 ],
23173 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23174 },
23175 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23176 },
23177 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
23178 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23179 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23180 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23181 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23182 &quot;A String&quot;,
23183 ],
23184 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23185 },
23186 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23187 },
23188 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23189 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23190 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23191 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23192 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23193 },
23194 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23195 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23196 },
23197 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
23198 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23199 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23200 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23201 &quot;A String&quot;,
23202 ],
23203 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23204 },
23205 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23206 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23207 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23208 },
23209 },
23210 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
23211 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
23212 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
23213 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
23214 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
23215 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
23216 &quot;A String&quot;,
23217 ],
23218 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
23219 &quot;A String&quot;,
23220 ],
23221 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
23222 &quot;A String&quot;,
23223 ],
23224 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
23225 { # Span attribute key and list of values to be used for filtering.
23226 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
23227 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
23228 &quot;A String&quot;,
23229 ],
23230 },
23231 ],
23232 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
23233 &quot;A String&quot;,
23234 ],
23235 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
23236 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
23237 &quot;A String&quot;,
23238 ],
23239 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
23240 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
23241 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
23242 &quot;A String&quot;,
23243 ],
23244 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
23245 &quot;A String&quot;,
23246 ],
23247 },
23248 },
23249 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
23250 },
23251 },
23252 ],
23253 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
23254 { # Defines a threshold for categorizing time series values.
23255 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
23256 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
23257 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
23258 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
23259 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
23260 },
23261 ],
23262 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
23263 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
23264 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
23265 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
23266 },
23267 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
23268 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
23269 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
23270 },
23271 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
23272 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
23273 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
23274 },
23275 },
23276 },
23277 &quot;width&quot;: 42, # The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
23278 &quot;xPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
23279 &quot;yPos&quot;: 42, # The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
23280 },
23281 ],
23282 },
23283 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dashboard.
23284 &quot;rowLayout&quot;: { # A simplified layout that divides the available space into rows and arranges a set of widgets horizontally in each row. # The content is divided into equally spaced rows and the widgets are arranged horizontally.
23285 &quot;rows&quot;: [ # The rows of content to display.
23286 { # Defines the layout properties and content for a row.
23287 &quot;weight&quot;: &quot;A String&quot;, # The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.
23288 &quot;widgets&quot;: [ # The display widgets arranged horizontally in this row.
23289 { # Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
23290 &quot;alertChart&quot;: { # A chart that displays alert policy data. # A chart of alert policy data.
23291 &quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the alert policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
23292 },
23293 &quot;blank&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # A blank space.
23294 },
23295 &quot;collapsibleGroup&quot;: { # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets.
23296 &quot;collapsed&quot;: True or False, # The collapsed state of the widget on first page load.
23297 },
23298 &quot;errorReportingPanel&quot;: { # A widget that displays a list of error groups. # A widget that displays a list of error groups.
23299 &quot;projectNames&quot;: [ # The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectNumber}, where {projectID} and {projectNumber} can be found in the Google Cloud console (https://support.google.com/cloud/answer/6158840).Examples: projects/my-project-123, projects/5551234.
23300 &quot;A String&quot;,
23301 ],
23302 &quot;services&quot;: [ # An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.
23303 &quot;A String&quot;,
23304 ],
23305 &quot;versions&quot;: [ # Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
23306 &quot;A String&quot;,
23307 ],
23308 },
23309 &quot;filterControl&quot;: { # A widget that displays an input field to change the value of a template variable. # A widget that displays an input field to change the value of a template variable.
23310 &quot;templateVariable&quot;: &quot;A String&quot;, # Name of the template variable the widget affects.
23311 },
23312 &quot;id&quot;: &quot;A String&quot;, # Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional.
23313 &quot;incidentList&quot;: { # A widget that displays a list of incidents # A widget that shows list of incidents.
23314 &quot;monitoredResources&quot;: [ # Optional. The monitored resource for which incidents are listed. The resource doesn&#x27;t need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.
23315 { # An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource&#x27;s schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for &quot;gce_instance&quot; has labels &quot;project_id&quot;, &quot;instance_id&quot; and &quot;zone&quot;: { &quot;type&quot;: &quot;gce_instance&quot;, &quot;labels&quot;: { &quot;project_id&quot;: &quot;my-project&quot;, &quot;instance_id&quot;: &quot;12345678901234&quot;, &quot;zone&quot;: &quot;us-central1-a&quot; }}
23316 &quot;labels&quot;: { # Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels &quot;project_id&quot;, &quot;instance_id&quot;, and &quot;zone&quot;.
23317 &quot;a_key&quot;: &quot;A String&quot;,
23318 },
23319 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
23320 },
23321 ],
23322 &quot;policyNames&quot;: [ # Optional. A list of alert policy names to filter the incident list by. Don&#x27;t include the project ID prefix in the policy name. For example, use alertPolicies/utilization.
23323 &quot;A String&quot;,
23324 ],
23325 },
23326 &quot;logsPanel&quot;: { # A widget that displays a stream of log. # A widget that shows a stream of logs.
23327 &quot;filter&quot;: &quot;A String&quot;, # A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
23328 &quot;resourceNames&quot;: [ # The names of logging resources to collect logs for. Currently projects and storage views are supported. If empty, the widget will default to the host project.
23329 &quot;A String&quot;,
23330 ],
23331 },
23332 &quot;pieChart&quot;: { # A widget that displays timeseries data as a pie or a donut. # A widget that displays timeseries data as a pie chart.
23333 &quot;chartType&quot;: &quot;A String&quot;, # Required. Indicates the visualization type for the PieChart.
23334 &quot;dataSets&quot;: [ # Required. The queries for the chart&#x27;s data.
23335 { # Groups a time series query definition.
23336 &quot;dimensions&quot;: [ # A dimension is a structured label, class, or category for a set of measurements in your data.
23337 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
23338 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
23339 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
23340 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
23341 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
23342 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
23343 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
23344 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
23345 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
23346 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
23347 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
23348 },
23349 ],
23350 &quot;measures&quot;: [ # A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
23351 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
23352 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
23353 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23354 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23355 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23356 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23357 },
23358 ],
23359 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23360 },
23361 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
23362 },
23363 ],
23364 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
23365 &quot;sliceNameTemplate&quot;: &quot;A String&quot;, # Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone&#x27;s value will be used for the name instead of the default name.
23366 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.
23367 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
23368 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
23369 },
23370 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
23371 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
23372 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
23373 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23374 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23375 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23376 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23377 &quot;A String&quot;,
23378 ],
23379 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23380 },
23381 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23382 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23383 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23384 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23385 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23386 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23387 },
23388 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23389 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23390 },
23391 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
23392 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23393 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23394 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23395 &quot;A String&quot;,
23396 ],
23397 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23398 },
23399 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23400 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23401 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23402 },
23403 },
23404 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
23405 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
23406 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23407 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23408 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23409 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23410 &quot;A String&quot;,
23411 ],
23412 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23413 },
23414 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23415 },
23416 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
23417 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23418 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23419 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23420 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23421 &quot;A String&quot;,
23422 ],
23423 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23424 },
23425 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23426 },
23427 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23428 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23429 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23430 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23431 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23432 },
23433 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23434 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23435 },
23436 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
23437 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23438 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23439 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23440 &quot;A String&quot;,
23441 ],
23442 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23443 },
23444 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23445 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23446 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23447 },
23448 },
23449 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
23450 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
23451 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
23452 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
23453 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
23454 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
23455 &quot;A String&quot;,
23456 ],
23457 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
23458 &quot;A String&quot;,
23459 ],
23460 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
23461 &quot;A String&quot;,
23462 ],
23463 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
23464 { # Span attribute key and list of values to be used for filtering.
23465 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
23466 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
23467 &quot;A String&quot;,
23468 ],
23469 },
23470 ],
23471 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
23472 &quot;A String&quot;,
23473 ],
23474 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
23475 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
23476 &quot;A String&quot;,
23477 ],
23478 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
23479 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
23480 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
23481 &quot;A String&quot;,
23482 ],
23483 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
23484 &quot;A String&quot;,
23485 ],
23486 },
23487 },
23488 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
23489 },
23490 },
23491 ],
23492 &quot;showLabels&quot;: True or False, # Optional. Indicates whether or not the pie chart should show slices&#x27; labels
23493 },
23494 &quot;scorecard&quot;: { # A widget showing the latest value of a metric, and how this value relates to one or more thresholds. # A scorecard summarizing time series data.
23495 &quot;blankView&quot;: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } # Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds.
23496 },
23497 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
23498 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
23499 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
23500 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23501 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23502 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23503 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23504 },
23505 ],
23506 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23507 },
23508 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
23509 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
23510 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
23511 },
23512 ],
23513 &quot;dimensions&quot;: [ # Optional. A dimension is a structured label, class, or category for a set of measurements in your data.
23514 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
23515 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
23516 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
23517 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
23518 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
23519 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
23520 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
23521 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
23522 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
23523 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
23524 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
23525 },
23526 ],
23527 &quot;gaugeView&quot;: { # A gauge chart shows where the current value sits within a pre-defined range. The upper and lower bounds should define the possible range of values for the scorecard&#x27;s query (inclusive). # Will cause the scorecard to show a gauge chart.
23528 &quot;lowerBound&quot;: 3.14, # The lower bound for this gauge chart. The value of the chart should always be greater than or equal to this.
23529 &quot;upperBound&quot;: 3.14, # The upper bound for this gauge chart. The value of the chart should always be less than or equal to this.
23530 },
23531 &quot;measures&quot;: [ # Optional. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
23532 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
23533 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
23534 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23535 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23536 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23537 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23538 },
23539 ],
23540 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23541 },
23542 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
23543 },
23544 ],
23545 &quot;sparkChartView&quot;: { # A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard&#x27;s timeseries. # Will cause the scorecard to show a spark chart.
23546 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
23547 &quot;sparkChartType&quot;: &quot;A String&quot;, # Required. The type of sparkchart to show in this chartView.
23548 },
23549 &quot;thresholds&quot;: [ # The thresholds used to determine the state of the scorecard given the time series&#x27; current value. For an actual value x, the scorecard is in a danger state if x is less than or equal to a danger threshold that triggers below, or greater than or equal to a danger threshold that triggers above. Similarly, if x is above/below a warning threshold that triggers above/below, then the scorecard is in a warning state - unless x also puts it in a danger state. (Danger trumps warning.)As an example, consider a scorecard with the following four thresholds: { value: 90, category: &#x27;DANGER&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 70, category: &#x27;WARNING&#x27;, trigger: &#x27;ABOVE&#x27;, }, { value: 10, category: &#x27;DANGER&#x27;, trigger: &#x27;BELOW&#x27;, }, { value: 20, category: &#x27;WARNING&#x27;, trigger: &#x27;BELOW&#x27;, } Then: values less than or equal to 10 would put the scorecard in a DANGER state, values greater than 10 but less than or equal to 20 a WARNING state, values strictly between 20 and 70 an OK state, values greater than or equal to 70 but less than 90 a WARNING state, and values greater than or equal to 90 a DANGER state.
23550 { # Defines a threshold for categorizing time series values.
23551 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
23552 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
23553 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
23554 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
23555 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
23556 },
23557 ],
23558 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
23559 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
23560 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
23561 },
23562 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
23563 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
23564 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
23565 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23566 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23567 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23568 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23569 &quot;A String&quot;,
23570 ],
23571 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23572 },
23573 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23574 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23575 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23576 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23577 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23578 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23579 },
23580 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23581 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23582 },
23583 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
23584 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23585 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23586 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23587 &quot;A String&quot;,
23588 ],
23589 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23590 },
23591 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23592 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23593 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23594 },
23595 },
23596 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
23597 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
23598 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23599 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23600 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23601 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23602 &quot;A String&quot;,
23603 ],
23604 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23605 },
23606 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23607 },
23608 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
23609 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23610 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23611 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23612 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23613 &quot;A String&quot;,
23614 ],
23615 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23616 },
23617 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23618 },
23619 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23620 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23621 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23622 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23623 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23624 },
23625 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23626 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23627 },
23628 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
23629 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23630 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23631 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23632 &quot;A String&quot;,
23633 ],
23634 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23635 },
23636 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23637 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23638 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23639 },
23640 },
23641 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
23642 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
23643 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
23644 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
23645 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
23646 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
23647 &quot;A String&quot;,
23648 ],
23649 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
23650 &quot;A String&quot;,
23651 ],
23652 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
23653 &quot;A String&quot;,
23654 ],
23655 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
23656 { # Span attribute key and list of values to be used for filtering.
23657 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
23658 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
23659 &quot;A String&quot;,
23660 ],
23661 },
23662 ],
23663 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
23664 &quot;A String&quot;,
23665 ],
23666 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
23667 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
23668 &quot;A String&quot;,
23669 ],
23670 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
23671 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
23672 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
23673 &quot;A String&quot;,
23674 ],
23675 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
23676 &quot;A String&quot;,
23677 ],
23678 },
23679 },
23680 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
23681 },
23682 },
23683 &quot;sectionHeader&quot;: { # A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. # A widget that defines a section header for easier navigation of the dashboard.
23684 &quot;dividerBelow&quot;: True or False, # Whether to insert a divider below the section in the table of contents
23685 &quot;subtitle&quot;: &quot;A String&quot;, # The subtitle of the section
23686 },
23687 &quot;singleViewGroup&quot;: { # A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. # A widget that groups the other widgets by using a dropdown menu.
23688 &quot;displayType&quot;: &quot;A String&quot;, # Optional. Determines how the widget selector will be displayed.
23689 },
23690 &quot;text&quot;: { # A widget that displays textual content. # A raw string or markdown displaying textual content.
23691 &quot;content&quot;: &quot;A String&quot;, # The text content to be displayed.
23692 &quot;format&quot;: &quot;A String&quot;, # How the text content is formatted.
23693 &quot;style&quot;: { # Properties that determine how the title and content are styled # How the text is styled
23694 &quot;backgroundColor&quot;: &quot;A String&quot;, # The background color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
23695 &quot;fontSize&quot;: &quot;A String&quot;, # Font sizes for both the title and content. The title will still be larger relative to the content.
23696 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # The horizontal alignment of both the title and content
23697 &quot;padding&quot;: &quot;A String&quot;, # The amount of padding around the widget
23698 &quot;pointerLocation&quot;: &quot;A String&quot;, # The pointer location for this widget (also sometimes called a &quot;tail&quot;)
23699 &quot;textColor&quot;: &quot;A String&quot;, # The text color as a hex string. &quot;#RRGGBB&quot; or &quot;#RGB&quot;
23700 &quot;verticalAlignment&quot;: &quot;A String&quot;, # The vertical alignment of both the title and content
23701 },
23702 },
23703 &quot;timeSeriesTable&quot;: { # A table that displays time series data. # A widget that displays time series data in a tabular format.
23704 &quot;columnSettings&quot;: [ # Optional. The list of the persistent column settings for the table.
23705 { # The persistent settings for a table&#x27;s columns.
23706 &quot;alignment&quot;: &quot;A String&quot;, # Optional. Whether the column should be left / middle / right aligned
23707 &quot;column&quot;: &quot;A String&quot;, # Required. The id of the column.
23708 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the column
23709 &quot;thresholds&quot;: [ # Optional. The thresholds used to determine how the table cell should be rendered given the time series&#x27; current value.
23710 { # Defines a threshold for categorizing time series values.
23711 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
23712 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
23713 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
23714 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
23715 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
23716 },
23717 ],
23718 &quot;visible&quot;: True or False, # Required. Whether the column should be visible on page load.
23719 },
23720 ],
23721 &quot;dataSets&quot;: [ # Required. The data displayed in this table.
23722 { # Groups a time series query definition with table options.
23723 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
23724 &quot;tableDisplayOptions&quot;: { # Table display options that can be reused. # Optional. Table display options for configuring how the table is rendered.
23725 &quot;shownColumns&quot;: [ # Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings
23726 &quot;A String&quot;,
23727 ],
23728 },
23729 &quot;tableTemplate&quot;: &quot;A String&quot;, # Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value i.e. &quot;${resource.labels.project_id}.&quot;
23730 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
23731 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
23732 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
23733 },
23734 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
23735 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
23736 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
23737 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23738 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23739 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23740 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23741 &quot;A String&quot;,
23742 ],
23743 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23744 },
23745 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23746 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23747 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23748 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23749 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23750 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23751 },
23752 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23753 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23754 },
23755 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
23756 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23757 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23758 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23759 &quot;A String&quot;,
23760 ],
23761 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23762 },
23763 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23764 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23765 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23766 },
23767 },
23768 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
23769 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
23770 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23771 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23772 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23773 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23774 &quot;A String&quot;,
23775 ],
23776 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23777 },
23778 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23779 },
23780 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
23781 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23782 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23783 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23784 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23785 &quot;A String&quot;,
23786 ],
23787 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23788 },
23789 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23790 },
23791 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23792 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23793 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23794 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23795 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23796 },
23797 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23798 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23799 },
23800 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
23801 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23802 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23803 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23804 &quot;A String&quot;,
23805 ],
23806 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23807 },
23808 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23809 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23810 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23811 },
23812 },
23813 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
23814 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
23815 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
23816 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
23817 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
23818 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
23819 &quot;A String&quot;,
23820 ],
23821 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
23822 &quot;A String&quot;,
23823 ],
23824 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
23825 &quot;A String&quot;,
23826 ],
23827 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
23828 { # Span attribute key and list of values to be used for filtering.
23829 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
23830 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
23831 &quot;A String&quot;,
23832 ],
23833 },
23834 ],
23835 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
23836 &quot;A String&quot;,
23837 ],
23838 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
23839 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
23840 &quot;A String&quot;,
23841 ],
23842 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
23843 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
23844 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
23845 &quot;A String&quot;,
23846 ],
23847 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
23848 &quot;A String&quot;,
23849 ],
23850 },
23851 },
23852 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
23853 },
23854 },
23855 ],
23856 &quot;metricVisualization&quot;: &quot;A String&quot;, # Optional. Store rendering strategy
23857 },
23858 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the widget.
23859 &quot;treemap&quot;: { # A widget that displays hierarchical data as a treemap. # A widget that displays data as a treemap.
23860 &quot;dataSets&quot;: [ # Required. The collection of datasets used to construct and populate the treemap. For the rendered treemap rectangles: Color is determined by the aggregated value for each grouping. Size is proportional to the count of time series aggregated within that rectangle&#x27;s segment.
23861 { # The data represented by the treemap. Needs to include the data itself, plus rules on how to organize it hierarchically.
23862 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.
23863 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
23864 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
23865 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23866 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23867 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23868 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23869 },
23870 ],
23871 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23872 },
23873 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
23874 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
23875 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
23876 },
23877 ],
23878 &quot;measures&quot;: [ # Optional. A collection of measures. A measure is a measured value of a property in your data. For example, rainfall in inches, number of units sold, revenue gained, etc.
23879 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
23880 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
23881 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
23882 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
23883 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
23884 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
23885 },
23886 ],
23887 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
23888 },
23889 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
23890 },
23891 ],
23892 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. The query that fetches the relevant data. See google.monitoring.dashboard.v1.TimeSeriesQuery
23893 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
23894 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
23895 },
23896 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
23897 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
23898 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
23899 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23900 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23901 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23902 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23903 &quot;A String&quot;,
23904 ],
23905 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23906 },
23907 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23908 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23909 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23910 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23911 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23912 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23913 },
23914 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23915 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23916 },
23917 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
23918 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23919 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23920 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23921 &quot;A String&quot;,
23922 ],
23923 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23924 },
23925 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23926 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23927 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23928 },
23929 },
23930 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
23931 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
23932 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23933 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23934 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23935 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23936 &quot;A String&quot;,
23937 ],
23938 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23939 },
23940 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23941 },
23942 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
23943 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
23944 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23945 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23946 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23947 &quot;A String&quot;,
23948 ],
23949 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23950 },
23951 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
23952 },
23953 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
23954 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
23955 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
23956 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
23957 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
23958 },
23959 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
23960 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
23961 },
23962 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
23963 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
23964 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
23965 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
23966 &quot;A String&quot;,
23967 ],
23968 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
23969 },
23970 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
23971 &quot;numTimeSeries&quot;: 42, # How many time series to output.
23972 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
23973 },
23974 },
23975 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
23976 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
23977 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
23978 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
23979 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
23980 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
23981 &quot;A String&quot;,
23982 ],
23983 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
23984 &quot;A String&quot;,
23985 ],
23986 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
23987 &quot;A String&quot;,
23988 ],
23989 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
23990 { # Span attribute key and list of values to be used for filtering.
23991 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
23992 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
23993 &quot;A String&quot;,
23994 ],
23995 },
23996 ],
23997 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
23998 &quot;A String&quot;,
23999 ],
24000 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
24001 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
24002 &quot;A String&quot;,
24003 ],
24004 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
24005 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
24006 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
24007 &quot;A String&quot;,
24008 ],
24009 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
24010 &quot;A String&quot;,
24011 ],
24012 },
24013 },
24014 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
24015 },
24016 },
24017 ],
24018 &quot;treemapHierarchy&quot;: [ # Required. Ordered labels representing the hierarchical treemap structure.
24019 &quot;A String&quot;,
24020 ],
24021 },
24022 &quot;visibilityCondition&quot;: { # Condition that determines whether the widget should be displayed. # Optional. If set, this widget is rendered only when the condition is evaluated to true.
24023 &quot;templateVariableCondition&quot;: { # A condition whose evaluation is based on the value of a template variable. # A condition whose evaluation is based on the value of a template variable.
24024 &quot;comparator&quot;: &quot;A String&quot;, # Comparator to use to evaluate whether the value of the template variable matches the template_variable_value. For example, if the comparator is REGEX_FULL_MATCH, template_variable_value would contain a regex that is matched against the value of the template variable.
24025 &quot;templateVariable&quot;: &quot;A String&quot;, # The template variable whose value is evaluated.
24026 &quot;templateVariableValue&quot;: &quot;A String&quot;, # The value to compare the template variable to. For example, if the comparator is REGEX_FULL_MATCH, this field should contain a regex.
24027 },
24028 },
24029 &quot;xyChart&quot;: { # A chart that displays data on a 2D (X and Y axes) plane. # A chart of time series data.
24030 &quot;chartOptions&quot;: { # Options to control visual rendering of a chart. # Display options for the chart.
24031 &quot;displayHorizontal&quot;: True or False, # Preview: Configures whether the charted values are shown on the horizontal or vertical axis. By default, values are represented the vertical axis. This is a preview feature and may be subject to change before final release.
24032 &quot;mode&quot;: &quot;A String&quot;, # The chart mode.
24033 },
24034 &quot;dataSets&quot;: [ # Required. The data displayed in this chart.
24035 { # Groups a time series query definition with charting options.
24036 &quot;breakdowns&quot;: [ # Optional. The collection of breakdowns to be applied to the dataset.
24037 { # Preview: A breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. This is a preview feature and may be subject to change before final release.
24038 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The Aggregation function is applied across all data in each breakdown created.
24039 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
24040 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
24041 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
24042 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
24043 },
24044 ],
24045 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
24046 },
24047 &quot;column&quot;: &quot;A String&quot;, # Required. The name of the column in the dataset containing the breakdown values.
24048 &quot;limit&quot;: 42, # Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field.
24049 &quot;sortOrder&quot;: &quot;A String&quot;, # Required. The sort order is applied to the values of the breakdown column.
24050 },
24051 ],
24052 &quot;dimensions&quot;: [ # Optional. A collection of dimension columns.
24053 { # A chart dimension. Dimensions are a structured label, class, or category for a set of measurements in your data.
24054 &quot;column&quot;: &quot;A String&quot;, # Required. For widgets that use SQL queries, set the value to the name of the column in the results table whose data is charted. For a histogram that uses a time series query, set the value of this field to metric_value.
24055 &quot;columnType&quot;: &quot;A String&quot;, # Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
24056 &quot;floatBinSize&quot;: 3.14, # Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
24057 &quot;maxBinCount&quot;: 42, # For widgets that use SQL queries, the limit to the number of bins to generate. When 0 is specified, the maximum count is not enforced. For a histogram that uses a time series query, the exact number of bins to generate. If not specified or the value is 0, then the histogram determines the number of bins to use.
24058 &quot;numericBinSize&quot;: 42, # numeric_bin_size is used when the column type used for a dimension is numeric or string. If the column field is set to metric_value, then numericBinSize overrides maxBinCount.
24059 &quot;sortColumn&quot;: &quot;A String&quot;, # The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
24060 &quot;sortOrder&quot;: &quot;A String&quot;, # The sort order applied to the sort column.
24061 &quot;timeBinSize&quot;: &quot;A String&quot;, # time_bin_size is used when the data type of the specified dimension is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
24062 &quot;xMax&quot;: 3.14, # The maximum value for the x-axis.
24063 &quot;xMin&quot;: 3.14, # The minimum value for the x-axis.
24064 },
24065 ],
24066 &quot;legendTemplate&quot;: &quot;A String&quot;, # A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label&#x27;s value.
24067 &quot;measures&quot;: [ # Optional. A collection of measures.
24068 { # A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.
24069 &quot;aggregationFunction&quot;: { # Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. # Required. The aggregation function applied to the input column. This must not be set to &quot;none&quot; unless binning is disabled on the dimension. The aggregation function is used to group points on the dimension bins.
24070 &quot;parameters&quot;: [ # Optional. Parameters applied to the aggregation function. Only used for functions that require them.
24071 { # Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
24072 &quot;doubleValue&quot;: 3.14, # A floating-point parameter value.
24073 &quot;intValue&quot;: &quot;A String&quot;, # An integer parameter value.
24074 },
24075 ],
24076 &quot;type&quot;: &quot;A String&quot;, # Required. The type of aggregation function, must be one of the following: &quot;none&quot; - no function. &quot;percentile&quot; - APPROX_QUANTILES() - 1 parameter numeric value &quot;average&quot; - AVG() &quot;count&quot; - COUNT() &quot;count-distinct&quot; - COUNT(DISTINCT) &quot;count-distinct-approx&quot; - APPROX_COUNT_DISTINCT() &quot;max&quot; - MAX() &quot;min&quot; - MIN() &quot;sum&quot; - SUM()
24077 },
24078 &quot;column&quot;: &quot;A String&quot;, # Required. The column name within in the dataset used for the measure.
24079 },
24080 ],
24081 &quot;minAlignmentPeriod&quot;: &quot;A String&quot;, # Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.For PromQL queries, this field is used to set the minimum interval for the query step, controlling data granularity. Larger values can improve performance on long time ranges. See Querying Basics and Range Queries for more details on the PromQL step.
24082 &quot;plotType&quot;: &quot;A String&quot;, # How this data should be plotted on the chart.
24083 &quot;sort&quot;: [ # Optional. A collection of sort options, affects the order of the data and legend.
24084 { # Data structure to storing column&#x27;s sort strategy
24085 &quot;column&quot;: &quot;A String&quot;, # Optional. Column name to sort data by
24086 &quot;direction&quot;: &quot;A String&quot;, # Optional. A sorting direction that determines ascending or descending order. This is a legacy field kept for backwards compatibility with table.
24087 },
24088 ],
24089 &quot;targetAxis&quot;: &quot;A String&quot;, # Optional. The target axis to use for plotting the metric.
24090 &quot;timeSeriesQuery&quot;: { # TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API. # Required. Fields for querying time series data from the Stackdriver metrics API.
24091 &quot;opsAnalyticsQuery&quot;: { # Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release. # 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.
24092 &quot;sql&quot;: &quot;A String&quot;, # A SQL query to fetch time series, category series, or numeric series data.
24093 },
24094 &quot;outputFullDuration&quot;: True or False, # 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&#x27;s spark chart
24095 &quot;prometheusQuery&quot;: &quot;A String&quot;, # A query used to fetch time series with PromQL.
24096 &quot;timeSeriesFilter&quot;: { # A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. # Filter parameters to fetch time series.
24097 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
24098 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
24099 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
24100 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
24101 &quot;A String&quot;,
24102 ],
24103 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
24104 },
24105 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
24106 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
24107 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
24108 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
24109 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
24110 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
24111 },
24112 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
24113 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
24114 },
24115 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after aggregation is applied.
24116 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
24117 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
24118 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
24119 &quot;A String&quot;,
24120 ],
24121 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
24122 },
24123 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
24124 &quot;numTimeSeries&quot;: 42, # How many time series to output.
24125 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
24126 },
24127 },
24128 &quot;timeSeriesFilterRatio&quot;: { # A pair of time series filters that define a ratio computation. The output time series is the pair-wise division of each aligned element from the numerator and denominator time series. # Parameters to fetch a ratio between two time series filters.
24129 &quot;denominator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The denominator of the ratio.
24130 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
24131 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
24132 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
24133 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
24134 &quot;A String&quot;,
24135 ],
24136 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
24137 },
24138 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
24139 },
24140 &quot;numerator&quot;: { # Describes a query to build the numerator or denominator of a TimeSeriesFilterRatio. # The numerator of the ratio.
24141 &quot;aggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.
24142 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
24143 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
24144 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
24145 &quot;A String&quot;,
24146 ],
24147 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
24148 },
24149 &quot;filter&quot;: &quot;A String&quot;, # Required. The monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies the metric types, resources, and projects to query.
24150 },
24151 &quot;pickTimeSeriesFilter&quot;: { # Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter. # Ranking based time series filter.
24152 &quot;direction&quot;: &quot;A String&quot;, # How to use the ranking to select time series that pass through the filter.
24153 &quot;interval&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Select the top N streams/time series within this time interval
24154 &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.
24155 &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.
24156 },
24157 &quot;numTimeSeries&quot;: 42, # How many time series to allow to pass through the filter.
24158 &quot;rankingMethod&quot;: &quot;A String&quot;, # ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.
24159 },
24160 &quot;secondaryAggregation&quot;: { # Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example &quot;the 95% latency across the average of all tasks in a cluster&quot;. This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation (https://cloud.google.com/monitoring/api/v3/aggregation). # Apply a second aggregation after the ratio is computed.
24161 &quot;alignmentPeriod&quot;: &quot;A String&quot;, # The alignment_period specifies a time interval, in seconds, that is used to divide the data in all the time series into consistent blocks of time. This will be done before the per-series aligner can be applied to the data.The value must be at least 60 seconds. If a per-series aligner other than ALIGN_NONE is specified, this field is required or an error is returned. If no per-series aligner is specified, or the aligner ALIGN_NONE is specified, then this field is ignored.The maximum value of the alignment_period is 2 years, or 104 weeks.
24162 &quot;crossSeriesReducer&quot;: &quot;A String&quot;, # The reduction operation to be used to combine time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.Not all reducer operations can be applied to all time series. The valid choices depend on the metric_kind and the value_type of the original time series. Reduction can yield a time series with a different metric_kind or value_type than the input time series.Time series data must first be aligned (see per_series_aligner) in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified, and must not be ALIGN_NONE. An alignment_period must also be specified; otherwise, an error is returned.
24163 &quot;groupByFields&quot;: [ # The set of fields to preserve when cross_series_reducer is specified. The group_by_fields determine how the time series are partitioned into subsets prior to applying the aggregation operation. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The cross_series_reducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in group_by_fields are aggregated away. If group_by_fields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If cross_series_reducer is not defined, this field is ignored.
24164 &quot;A String&quot;,
24165 ],
24166 &quot;perSeriesAligner&quot;: &quot;A String&quot;, # An Aligner describes how to bring the data points in a single time series into temporal alignment. Except for ALIGN_NONE, all alignments cause all the data points in an alignment_period to be mathematically grouped together, resulting in a single data point for each alignment_period with end timestamp at the end of the period.Not all alignment operations may be applied to all time series. The valid choices depend on the metric_kind and value_type of the original time series. Alignment can change the metric_kind or the value_type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If cross_series_reducer is specified, then per_series_aligner must be specified and not equal to ALIGN_NONE and alignment_period must be specified; otherwise, an error is returned.
24167 },
24168 &quot;statisticalTimeSeriesFilter&quot;: { # A filter that ranks streams based on their statistical relation to other streams in a request. Note: This field is deprecated and completely ignored by the API. # Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.
24169 &quot;numTimeSeries&quot;: 42, # How many time series to output.
24170 &quot;rankingMethod&quot;: &quot;A String&quot;, # rankingMethod is applied to a set of time series, and then the produced value for each individual time series is used to compare a given time series to others. These are methods that cannot be applied stream-by-stream, but rather require the full context of a request to evaluate time series.
24171 },
24172 },
24173 &quot;timeSeriesQueryLanguage&quot;: &quot;A String&quot;, # A query used to fetch time series with MQL.
24174 &quot;traceQuery&quot;: { # LINT.IfChange Preview: Query for traces. This is a preview feature and may be subject to change before final release. # Optional. Preview: Query for traces. This is a preview feature and may be subject to change before final release.
24175 &quot;resourceContainer&quot;: &quot;A String&quot;, # Optional. The resource name of the project or Trace scope to fetch data from. If empty, the widget will default to the project&#x27;s default Trace scope. If scope cannot be determined, then we fallback to the current project. Optional.
24176 &quot;spanDataValue&quot;: &quot;A String&quot;, # The type of span data value to be displayed on the chart. Required.
24177 &quot;spanFilters&quot;: { # First version of span filtering that is supported by the Trace component. # First version of span filtering that we will support. Required.
24178 &quot;apphubServices&quot;: [ # Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;service-id1&quot;, &quot;service-id2&quot;
24179 &quot;A String&quot;,
24180 ],
24181 &quot;apphubWorkloads&quot;: [ # Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple values will be OR&#x27;d together. Example: &quot;workload-id1&quot;, &quot;workload-id2&quot;
24182 &quot;A String&quot;,
24183 ],
24184 &quot;applicationIds&quot;: [ # Optional. Filtering for spans containing one of the Apphub Application IDs in the list. Multiple values will be OR&#x27;d together.
24185 &quot;A String&quot;,
24186 ],
24187 &quot;attributes&quot;: [ # Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple attribute filters will be AND&#x27;d together.
24188 { # Span attribute key and list of values to be used for filtering.
24189 &quot;key&quot;: &quot;A String&quot;, # Key of the attribute
24190 &quot;value&quot;: [ # List of attribute values for given key. Multiple values will be OR&#x27;d together.
24191 &quot;A String&quot;,
24192 ],
24193 },
24194 ],
24195 &quot;displayNames&quot;: [ # Optional. Filtering for spans containing one of the span display names in the list. Multiple values will be OR&#x27;d together.
24196 &quot;A String&quot;,
24197 ],
24198 &quot;isRootSpan&quot;: True or False, # Optional. Filters for root spans only if set to true. A root span is a span without a defined parent span ID.
24199 &quot;kinds&quot;: [ # Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be OR&#x27;d together.
24200 &quot;A String&quot;,
24201 ],
24202 &quot;maxDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a maximum duration.
24203 &quot;minDuration&quot;: &quot;A String&quot;, # Optional. Filtering for spans with a minimum duration.
24204 &quot;services&quot;: [ # Optional. Filtering for spans containing one of the services in the list. Multiple values will be OR&#x27;d together.
24205 &quot;A String&quot;,
24206 ],
24207 &quot;status&quot;: [ # Optional. Filtering for spans containing one of the statuses in the list. Multiple values will be OR&#x27;d together.
24208 &quot;A String&quot;,
24209 ],
24210 },
24211 },
24212 &quot;unitOverride&quot;: &quot;A String&quot;, # 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.
24213 },
24214 },
24215 ],
24216 &quot;thresholds&quot;: [ # Threshold lines drawn horizontally across the chart.
24217 { # Defines a threshold for categorizing time series values.
24218 &quot;color&quot;: &quot;A String&quot;, # The state color for this threshold. Color is not allowed in a XyChart.
24219 &quot;direction&quot;: &quot;A String&quot;, # The direction for the current threshold. Direction is not allowed in a XyChart.
24220 &quot;label&quot;: &quot;A String&quot;, # A label for the threshold.
24221 &quot;targetAxis&quot;: &quot;A String&quot;, # The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
24222 &quot;value&quot;: 3.14, # The value of the threshold. The value should be defined in the native scale of the metric.
24223 },
24224 ],
24225 &quot;timeshiftDuration&quot;: &quot;A String&quot;, # The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type.
24226 &quot;xAxis&quot;: { # A chart axis. # The properties applied to the x-axis.
24227 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
24228 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
24229 },
24230 &quot;y2Axis&quot;: { # A chart axis. # The properties applied to the y2-axis.
24231 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
24232 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
24233 },
24234 &quot;yAxis&quot;: { # A chart axis. # The properties applied to the y-axis.
24235 &quot;label&quot;: &quot;A String&quot;, # The label of the axis.
24236 &quot;scale&quot;: &quot;A String&quot;, # The axis scale. By default, a linear scale is used.
24237 },
24238 },
24239 },
24240 ],
24241 },
24242 ],
24243 },
24244 }</pre>
24245 </div>
24246
24247 </body></html>